From 72ed4c322652d88bf90ddfe8b8c9a563c51e4660 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Wed, 19 Dec 2012 17:07:54 +0200 Subject: [ci skip] Some micro-optimizations and style changes (following PRs #2049, #2079) --- system/core/Security.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'system/core/Security.php') 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; } -- cgit v1.2.3-24-g4f1b