Skip to content

Commit

Permalink
reverted b83b52a
Browse files Browse the repository at this point in the history
which has broken the use of single dots in the URI
  • Loading branch information
WanWizard committed Jan 22, 2016
1 parent bcc64a7 commit 3f67455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/security.php
Expand Up @@ -95,7 +95,7 @@ public static function clean_uri($uri, $strict = false)
$filters = \Config::get('security.uri_filter', array());
$filters = is_array($filters) ? $filters : array($filters);

$strict and $uri = preg_replace(array("/\.+\//", '/\/+/'), '/', $uri);
$strict and $uri = str_replace(array('//', '../'), '/', $uri);

return static::clean($uri, $filters);
}
Expand Down

0 comments on commit 3f67455

Please sign in to comment.