From 9463e670c98bbee99ae466673e52371c6fd39813 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 6 Oct 2015 09:36:00 +0200 Subject: Fix handling of %10 in paste content CI tries to remove invisible escape chars, but this breaks handling of code like the following: if (m == 2 && (y%4 == 0 && y%100 != 0)|| y%400 == 0) When pasted via the client all is fine, but when pasted in the webui CI strips '%10' from the string and leaves 'y0 != 0'. The second parameter of remove_invisible_characters indicates whether the string is urlencoded so I believe that setting it to false should be fine. This only disables the code that removes % escapes. Signed-off-by: Florian Pritz --- system/core/Input.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/Input.php b/system/core/Input.php index 88afa8c7e..7bc34231d 100644 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -691,7 +691,7 @@ class CI_Input { } // Remove control characters - $str = remove_invisible_characters($str); + $str = remove_invisible_characters($str, false); // Should we filter the input data? if ($this->_enable_xss === TRUE) -- cgit v1.2.3-24-g4f1b