Commit 1149736ba2c0536348a02c14004a2ac03fde7451
1 parent
03b628df
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fixed sanitize_params
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
lib/sanitize_params.rb
... | ... | @@ -5,11 +5,11 @@ module SanitizeParams |
5 | 5 | # Check each request parameter for |
6 | 6 | # improper HTML or Script tags |
7 | 7 | def sanitize_params |
8 | - sanitize_params(request.params) | |
8 | + sanitize_params_array(request.params) | |
9 | 9 | end |
10 | 10 | |
11 | 11 | # Given a params list sanitize all |
12 | - def sanitize_params(params) | |
12 | + def sanitize_params_array(params) | |
13 | 13 | params.each { |k, v| |
14 | 14 | if v.is_a?(String) |
15 | 15 | params[k] = sanitize_param v | ... | ... |