[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package s9e\TextFormatter 5 * @copyright Copyright (c) 2010-2022 The s9e authors 6 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 7 */ 8 namespace s9e\TextFormatter\Configurator\TemplateChecks; 9 10 use DOMElement; 11 use s9e\TextFormatter\Configurator\Helpers\NodeLocator; 12 use s9e\TextFormatter\Configurator\Helpers\XPathHelper; 13 use s9e\TextFormatter\Configurator\Items\Attribute; 14 15 class DisallowUnsafeDynamicJS extends AbstractDynamicContentCheck 16 { 17 /** 18 * {@inheritdoc} 19 */ 20 protected function getNodes(DOMElement $template) 21 { 22 return NodeLocator::getJSNodes($template->ownerDocument); 23 } 24 25 /** 26 * {@inheritdoc} 27 */ 28 protected function isExpressionSafe($expr) 29 { 30 return XPathHelper::isExpressionNumeric($expr); 31 } 32 33 /** 34 * {@inheritdoc} 35 */ 36 protected function isSafe(Attribute $attribute) 37 { 38 return $attribute->isSafeInJS(); 39 } 40 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |