aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-10-04 16:56:35 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-10-04 16:56:35 +0000
commit2cd7f67ed5bf9d591d6b99e5a41e3ea7f1b18bea (patch)
tree43df73c4156b75fa05966109eb24eec787920846
parent27fc215914287ce0cb7e242b211d1857d2371d51 (diff)
downloadforums-2cd7f67ed5bf9d591d6b99e5a41e3ea7f1b18bea.tar
forums-2cd7f67ed5bf9d591d6b99e5a41e3ea7f1b18bea.tar.gz
forums-2cd7f67ed5bf9d591d6b99e5a41e3ea7f1b18bea.tar.bz2
forums-2cd7f67ed5bf9d591d6b99e5a41e3ea7f1b18bea.tar.xz
forums-2cd7f67ed5bf9d591d6b99e5a41e3ea7f1b18bea.zip
- more accurate comment
git-svn-id: file:///svn/phpbb/trunk@8137 89ea8834-ac86-4346-8a33-228a782c2dd0
-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)
{