diff options
author | David Cox Jr <DaveMC08@gmail.com> | 2013-09-24 05:47:26 +0200 |
---|---|---|
committer | David Cox Jr <DaveMC08@gmail.com> | 2013-09-24 05:47:26 +0200 |
commit | 6d917858b5ffd012bd85a0062d511d261cd6df2d (patch) | |
tree | 05b59ff09cfe396e15fe01adc819113796da37a7 /system/core | |
parent | 0bba6434f0ba3d6b1f677233c2e3c8f37b3195cc (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.php | 2 |
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) |