summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-10-06 09:36:00 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-10-06 09:36:00 +0200
commit9463e670c98bbee99ae466673e52371c6fd39813 (patch)
treefe28e5583dc6d94a8f9a8e86a203a782e96169df
parentcd8bc917087164ae13ae9f9063ddefbe0f9dcdaf (diff)
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 <bluewind@xinu.at>
-rw-r--r--system/core/Input.php2
1 files changed, 1 insertions, 1 deletions
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)