From 1c775e7d0b95bbf972f3924319a8d46f54be0dc9 Mon Sep 17 00:00:00 2001 From: Razican Date: Tue, 11 Nov 2014 12:23:05 +0200 Subject: Remove URI filter for parenthesis and dollar symbols, as talked in #47. Signed-off-by: Razican --- system/core/URI.php | 7 ------- 1 file changed, 7 deletions(-) (limited to 'system/core') diff --git a/system/core/URI.php b/system/core/URI.php index 1817374b7..7809e17c0 100644 --- a/system/core/URI.php +++ b/system/core/URI.php @@ -326,13 +326,6 @@ class CI_URI { { show_error('The URI you submitted has disallowed characters.', 400); } - - // Convert programatic characters to entities and return - return str_replace( - array('$', '(', ')', '%28', '%29'), // Bad - array('$', '(', ')', '(', ')'), // Good - $str - ); } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b From fa11460e34b90016f185a03bc39c529577ee2cd7 Mon Sep 17 00:00:00 2001 From: Razican Date: Tue, 11 Nov 2014 12:25:40 +0200 Subject: Fixed return. Signed-off-by: Razican --- system/core/URI.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/core') diff --git a/system/core/URI.php b/system/core/URI.php index 7809e17c0..067338d2a 100644 --- a/system/core/URI.php +++ b/system/core/URI.php @@ -326,6 +326,8 @@ class CI_URI { { show_error('The URI you submitted has disallowed characters.', 400); } + + return $str; } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b