Skip to content

Commit

Permalink
Merge pull request #836 from AdrianGaudebert/791889-search-decode-fix
Browse files Browse the repository at this point in the history
Fixes bug 791889 - More robust middleware decode function, and do not do...
  • Loading branch information
lonnen committed Sep 18, 2012
2 parents 7e8e0ae + c195741 commit e76815d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions socorro/middleware/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def decode_special_chars(self, value):
value = value.replace("%2F", "/")
value = value.replace("%2B", "+")
except AttributeError:
value = [x.replace("%2F", "/") for x in value]
value = [x.replace("%2B", "+") for x in value]
try:
value = [x.replace("%2F", "/") for x in value]
value = [x.replace("%2B", "+") for x in value]
except TypeError:
pass
return value
1 change: 0 additions & 1 deletion webapp-php/application/libraries/MY_SearchReportHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public function defaultParams(){
* @param array An array of $_GET parameters
*/
public function normalizeParams( &$params ){
$params['query'] = urldecode($params['query']);
$this->normalizeProduct($params);
$this->normalizeDateUnitAndValue($params);
}
Expand Down

0 comments on commit e76815d

Please sign in to comment.