diff options
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index ee97ffdc76..989d34a287 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -1492,9 +1492,9 @@ function remove_comments(&$output) $linecount = sizeof($lines); $in_comment = false; - for($i = 0; $i < $linecount; $i++) + for ($i = 0; $i < $linecount; $i++) { - if (preg_match('#^\/\*#', preg_quote($lines[$i]))) + if (trim($lines[$i]) == '/*') { $in_comment = true; } @@ -1504,7 +1504,7 @@ function remove_comments(&$output) $output .= $lines[$i] . "\n"; } - if (preg_match('#\*\/$#', preg_quote($lines[$i]))) + if (trim($lines[$i]) == '*/') { $in_comment = false; } |