diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-12-19 16:07:54 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-12-19 16:07:54 +0100 |
commit | 72ed4c322652d88bf90ddfe8b8c9a563c51e4660 (patch) | |
tree | 08ab69109dce3876b2942cbaba9be0bb6036a121 /system/core/Security.php | |
parent | a9162502512e5eca4fa257689e7a250be900968f (diff) |
[ci skip] Some micro-optimizations and style changes
(following PRs #2049, #2079)
Diffstat (limited to 'system/core/Security.php')
-rw-r--r-- | system/core/Security.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/core/Security.php b/system/core/Security.php index 5ae8e653c..7c929b6ca 100644 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -534,7 +534,7 @@ class CI_Security { $str = preg_replace('~&#x(0*[0-9a-f]{2,5})~ei', 'chr(hexdec("\\1"))', $str, -1, $matches); $str = preg_replace('~&#([0-9]{2,4})~e', 'chr(\\1)', $str, -1, $matches1); } - while($matches OR $matches1); + while ($matches OR $matches1); return $str; } @@ -671,8 +671,8 @@ class CI_Security { { $str = preg_replace('/(<?)(\/?[^><]+?)([^A-Za-z<>\-])(.*?)('.implode('|', $attribs).')(.*?)([\s><]?)([><]*)/i', '$1$2 $4$6$7$8', $str, -1, $count); } - - } while ($count); + } + while ($count); return $str; } |