mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
- more accurate comment
git-svn-id: file:///svn/phpbb/trunk@8137 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
27fc215914
commit
2cd7f67ed5
@ -86,16 +86,9 @@ class template_compile
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Straight-forward strategy: use PHP's tokenizer to escape everything that
|
* Remove any PHP tags that do not belong, these regular expressions are derived from
|
||||||
* looks like a PHP tag.
|
* the ones that exist in zend_language_scanner.l
|
||||||
*
|
* @access private
|
||||||
* 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
|
|
||||||
*/
|
*/
|
||||||
function remove_php_tags(&$code)
|
function remove_php_tags(&$code)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user