Skip to content

Commit

Permalink
[#31036] Search is broken on Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
phproberto committed Jun 21, 2013
1 parent 5362578 commit 7c608a3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libraries/joomla/uri/uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,8 @@ public static function getInstance($uri = 'SERVER')
}
}

// Check for quotes in the URL to prevent injections through the Host header
if ($theURI !== str_replace(array("'", '"', '<', '>'), '', $theURI))
{
throw new InvalidArgumentException('Invalid URI detected.');
}
// Extra cleanup to remove invalid chars in the URL to prevent injections through the Host header
$theURI = str_replace(array("'", '"', '<', '>'), array("%27", "%22", "%3C", "%3E"), $theURI);
}
else
{
Expand Down

0 comments on commit 7c608a3

Please sign in to comment.