summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-10-18 20:13:56 +0200
committerAndrey Andreev <narf@devilix.net>2013-10-18 20:13:56 +0200
commite08411d72226ba5b2f97b519051f78d978747e18 (patch)
tree44a4ac27763f92b22d9b66ed12b109b220791aa9 /system
parenta277a50f82dacaa129876160dadbda98fc9e33ca (diff)
Eh ... preg_replace() needs a replacement
Diffstat (limited to 'system')
-rw-r--r--system/core/Security.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Security.php b/system/core/Security.php
index 5c5c0efb6..9423f825c 100644
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -553,8 +553,8 @@ class CI_Security {
{
$matches = $matches1 = 0;
- $str = preg_replace('~(&#x0*[0-9a-f]{2,5});?~iS', $str, -1, $matches);
- $str = preg_replace('~(&#\d{2,4});?~S', $str, -1, $matches1);
+ $str = preg_replace('~(&#x0*[0-9a-f]{2,5});?~iS', '$1;', $str, -1, $matches);
+ $str = preg_replace('~(&#\d{2,4});?~S', '$1;', $str, -1, $matches1);
$str = html_entity_decode($str, ENT_COMPAT, $charset);
}
while ($matches OR $matches1);