[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
vendor_prefixed
/
twig
/
twig
/
twig
/
src
/
Node
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Expression
SET
[ DEL ]
📄 AutoEscapeNode.php
940 B
SET
[ EDIT ]
|
[ DEL ]
📄 BlockNode.php
1,041 B
SET
[ EDIT ]
|
[ DEL ]
📄 BlockReferenceNode.php
902 B
SET
[ EDIT ]
|
[ DEL ]
📄 BodyNode.php
415 B
SET
[ EDIT ]
|
[ DEL ]
📄 CaptureNode.php
1,502 B
SET
[ EDIT ]
|
[ DEL ]
📄 CheckSecurityCallNode.php
622 B
SET
[ EDIT ]
|
[ DEL ]
📄 CheckSecurityNode.php
2,581 B
SET
[ EDIT ]
|
[ DEL ]
📄 DeprecatedNode.php
1,847 B
SET
[ EDIT ]
|
[ DEL ]
📄 DoNode.php
840 B
SET
[ EDIT ]
|
[ DEL ]
📄 EmbedNode.php
1,397 B
SET
[ EDIT ]
|
[ DEL ]
📄 FlushNode.php
700 B
SET
[ EDIT ]
|
[ DEL ]
📄 ForLoopNode.php
1,310 B
SET
[ EDIT ]
|
[ DEL ]
📄 ForNode.php
3,431 B
SET
[ EDIT ]
|
[ DEL ]
📄 IfNode.php
1,648 B
SET
[ EDIT ]
|
[ DEL ]
📄 ImportNode.php
1,587 B
SET
[ EDIT ]
|
[ DEL ]
📄 IncludeNode.php
2,821 B
SET
[ EDIT ]
|
[ DEL ]
📄 MacroNode.php
2,438 B
SET
[ EDIT ]
|
[ DEL ]
📄 NameDeprecation.php
928 B
SET
[ EDIT ]
|
[ DEL ]
📄 Node.php
7,959 B
SET
[ EDIT ]
|
[ DEL ]
📄 NodeCaptureInterface.php
397 B
SET
[ EDIT ]
|
[ DEL ]
📄 NodeOutputInterface.php
376 B
SET
[ EDIT ]
|
[ DEL ]
📄 PrintNode.php
1,027 B
SET
[ EDIT ]
|
[ DEL ]
📄 SandboxNode.php
1,126 B
SET
[ EDIT ]
|
[ DEL ]
📄 SetNode.php
2,872 B
SET
[ EDIT ]
|
[ DEL ]
📄 TextNode.php
825 B
SET
[ EDIT ]
|
[ DEL ]
📄 WithNode.php
1,956 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: CheckSecurityNode.php
<?php /* * This file is part of Twig. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ElementorDeps\Twig\Node; use ElementorDeps\Twig\Attribute\YieldReady; use ElementorDeps\Twig\Compiler; /** * @author Fabien Potencier <fabien@symfony.com> */ #[YieldReady] class CheckSecurityNode extends Node { private $usedFilters; private $usedTags; private $usedFunctions; /** * @param array<string, int> $usedFilters * @param array<string, int> $usedTags * @param array<string, int> $usedFunctions */ public function __construct(array $usedFilters, array $usedTags, array $usedFunctions) { $this->usedFilters = $usedFilters; $this->usedTags = $usedTags; $this->usedFunctions = $usedFunctions; parent::__construct(); } public function compile(Compiler $compiler) : void { $compiler->write("\n")->write("public function checkSecurity()\n")->write("{\n")->indent()->write('static $tags = ')->repr(\array_filter($this->usedTags))->raw(";\n")->write('static $filters = ')->repr(\array_filter($this->usedFilters))->raw(";\n")->write('static $functions = ')->repr(\array_filter($this->usedFunctions))->raw(";\n\n")->write("try {\n")->indent()->write("\$this->sandbox->checkSecurity(\n")->indent()->write(!$this->usedTags ? "[],\n" : "['" . \implode("', '", \array_keys($this->usedTags)) . "'],\n")->write(!$this->usedFilters ? "[],\n" : "['" . \implode("', '", \array_keys($this->usedFilters)) . "'],\n")->write(!$this->usedFunctions ? "[],\n" : "['" . \implode("', '", \array_keys($this->usedFunctions)) . "'],\n")->write("\$this->source\n")->outdent()->write(");\n")->outdent()->write("} catch (SecurityError \$e) {\n")->indent()->write("\$e->setSourceContext(\$this->source);\n\n")->write("if (\$e instanceof SecurityNotAllowedTagError && isset(\$tags[\$e->getTagName()])) {\n")->indent()->write("\$e->setTemplateLine(\$tags[\$e->getTagName()]);\n")->outdent()->write("} elseif (\$e instanceof SecurityNotAllowedFilterError && isset(\$filters[\$e->getFilterName()])) {\n")->indent()->write("\$e->setTemplateLine(\$filters[\$e->getFilterName()]);\n")->outdent()->write("} elseif (\$e instanceof SecurityNotAllowedFunctionError && isset(\$functions[\$e->getFunctionName()])) {\n")->indent()->write("\$e->setTemplateLine(\$functions[\$e->getFunctionName()]);\n")->outdent()->write("}\n\n")->write("throw \$e;\n")->outdent()->write("}\n\n")->outdent()->write("}\n"); } }