Commit 526b033
committed
Move search param guard to format_search_params!
Strip non-Hash search params at the controller level in
format_search_params! instead of guarding in the ES query builder.
This is consistent with how tags, filetypes, and size are already
sanitized in the same method.1 parent 7069f03 commit 526b033
File tree
2 files changed
+3
-1
lines changed- app
- controllers/concerns
- modules/product
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| |||
0 commit comments