aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_template.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php
index 0d8a39eaee..c7c7ac1215 100644
--- a/phpBB/includes/functions_template.php
+++ b/phpBB/includes/functions_template.php
@@ -86,16 +86,9 @@ class template_compile
}
/**
- * Straight-forward strategy: use PHP's tokenizer to escape everything that
- * looks like a PHP tag.
- *
- * We open/close PHP tags at the beginning of the template to clearly indicate
- * that we are in HTML mode. If we find a PHP tag, we escape it then we reiterate
- * over the whole file. That can become quite slow if the file is stuffed with
- * <?php tags, but there's only so much we can do.
- *
- * Known issue: templates need to be rechecked everytime the value of the php.ini
- * settings asp_tags or short_tags are changed
+ * Remove any PHP tags that do not belong, these regular expressions are derived from
+ * the ones that exist in zend_language_scanner.l
+ * @access private
*/
function remove_php_tags(&$code)
{