summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorDavid Cox Jr <DaveMC08@gmail.com>2013-09-24 05:47:26 +0200
committerDavid Cox Jr <DaveMC08@gmail.com>2013-09-24 05:47:26 +0200
commit6d917858b5ffd012bd85a0062d511d261cd6df2d (patch)
tree05b59ff09cfe396e15fe01adc819113796da37a7 /system/core
parent0bba6434f0ba3d6b1f677233c2e3c8f37b3195cc (diff)
fix #2637
cleaned up the regex to remove extra qualifiers used character sets where possible for clarity main expression optimized
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Output.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index b5955c008..7a5fb66f6 100644
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -847,7 +847,7 @@ class CI_Output {
}
// Remove CSS comments
- $output = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/(?!.*?("|\'))!i', '', $output);
+ $output = preg_replace('!/\*([^/][^*]*\*)*/(?!.+?["\'])!i', '', $output);
// Remove Javascript inline comments
if ($has_tags === TRUE && strpos(strtolower($open_tag), 'script') !== FALSE)