Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
phpmyadmin /
vendor /
twig /
twig /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Cache
[ DIR ]
drwxr-xr-x
Error
[ DIR ]
drwxr-xr-x
Extension
[ DIR ]
drwxr-xr-x
Loader
[ DIR ]
drwxr-xr-x
Node
[ DIR ]
drwxr-xr-x
NodeVisitor
[ DIR ]
drwxr-xr-x
Profiler
[ DIR ]
drwxr-xr-x
RuntimeLoader
[ DIR ]
drwxr-xr-x
Sandbox
[ DIR ]
drwxr-xr-x
TokenParser
[ DIR ]
drwxr-xr-x
Util
[ DIR ]
drwxr-xr-x
Compiler.php
4.94
KB
-rw-r--r--
Environment.php
24.33
KB
-rw-r--r--
ExpressionParser.php
32.31
KB
-rw-r--r--
ExtensionSet.php
13.07
KB
-rw-r--r--
FileExtensionEscapingStrategy.php
1.41
KB
-rw-r--r--
Lexer.php
19
KB
-rw-r--r--
Markup.php
939
B
-rw-r--r--
NodeTraverser.php
1.78
KB
-rw-r--r--
Parser.php
11
KB
-rw-r--r--
Source.php
1023
B
-rw-r--r--
Template.php
12.52
KB
-rw-r--r--
TemplateWrapper.php
2.63
KB
-rw-r--r--
Token.php
5.17
KB
-rw-r--r--
TokenStream.php
3.45
KB
-rw-r--r--
TwigFilter.php
3.05
KB
-rw-r--r--
TwigFunction.php
2.79
KB
-rw-r--r--
TwigTest.php
2.25
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FileExtensionEscapingStrategy.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 Twig; /** * Default autoescaping strategy based on file names. * * This strategy sets the HTML as the default autoescaping strategy, * but changes it based on the template name. * * Note that there is no runtime performance impact as the * default autoescaping strategy is set at compilation time. * * @author Fabien Potencier <fabien@symfony.com> */ class FileExtensionEscapingStrategy { /** * Guesses the best autoescaping strategy based on the file name. * * @param string $name The template name * * @return string|false The escaping strategy name to use or false to disable */ public static function guess(string $name) { if (\in_array(substr($name, -1), ['/', '\\'])) { return 'html'; // return html for directories } if ('.twig' === substr($name, -5)) { $name = substr($name, 0, -5); } $extension = pathinfo($name, \PATHINFO_EXTENSION); switch ($extension) { case 'js': return 'js'; case 'css': return 'css'; case 'txt': return false; default: return 'html'; } } }
Close