[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/TemplateChecks/ -> DisallowPHPTags.php (summary)

(no description)

File Size: 62 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DisallowPHPTags:: (1 method):
  check()


Class: DisallowPHPTags  - X-Ref


check(DOMElement $template, Tag $tag)   X-Ref
Prevent PHP tags from appearing in the stylesheet or in renderings

Targets <?php tags as well as <script language="php">. Cannot target short tags or ASP tags.
Assumes that element names and attribute names are normalized to lowercase by the template
normalizer. Does not cover script elements in the output, dynamic xsl:element names are
handled by DisallowDynamicElementNames.

NOTE: PHP tags have no effect in templates or in renderings, they are removed on the remote
chance of being used as a vector, for example if a template is saved in a publicly
accessible file that the webserver is somehow configured to process as PHP, or if the
output is saved in a file (e.g. for static archives) that is parsed by PHP

param: DOMElement $template <xsl:template/> node
param: Tag        $tag      Tag this template belongs to
return: void



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1