diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-03-27 02:07:09 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-03-27 02:26:17 +0200 |
commit | 37c84ed877188151c14af2b1401e4f2bd860bdd7 (patch) | |
tree | bb552a00ca8165d550542c3135885ec9512db9fa /railties | |
parent | 494610792530bc21f5c284a4eb66278b07953a5b (diff) | |
download | rails-37c84ed877188151c14af2b1401e4f2bd860bdd7.tar.gz rails-37c84ed877188151c14af2b1401e4f2bd860bdd7.tar.bz2 rails-37c84ed877188151c14af2b1401e4f2bd860bdd7.zip |
Don't ignore non Enumerable values passed to sanitize (closes #5585)
When someone accidentally passes a string to sanitize like:
sanitize("<span>foo</span>", :tags => "b")
there is no indication that it's the wrong way and span
will not be removed.
Diffstat (limited to 'railties')
0 files changed, 0 insertions, 0 deletions