From 40f38f1e289eda97026cc3d21558cd99bcce2e1d Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Mon, 30 Jun 2008 17:23:25 +0000 Subject: simplified regex for _remove_invisible_characters() - since we rawurldecode() the string, there's no need to go looking for url encoded characters here --- system/libraries/Input.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'system/libraries/Input.php') diff --git a/system/libraries/Input.php b/system/libraries/Input.php index 5f47909ac..a2f1d0056 100644 --- a/system/libraries/Input.php +++ b/system/libraries/Input.php @@ -829,12 +829,11 @@ class CI_Input { if ( ! isset($non_displayables)) { // every control character except newline (10), carriage return (13), and horizontal tab (09), - // both as a URL encoded character (::shakes fist at IE and WebKit::), and the actual character $non_displayables = array( - '/%0[0-8]/', '/[\x00-\x08]/', // 00-08 - '/%11/', '/\x0b/', '/%12/', '/\x0c/', // 11, 12 - '/%1[4-9]/', '/%2[0-9]/', '/%3[0-1]/', // url encoded 14-31 - '/[\x0e-\x1f]/'); // 14-31 + '/[\x00-\x08]/', // 00-08 + '/\x0b/', '/\x0c/', // 11, 12 + '/[\x0e-\x1f]/' // 14-31 + ); } -- cgit v1.2.3-24-g4f1b