mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-05 00:30:54 +02:00
65 lines
2.1 KiB
XML
65 lines
2.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<sect1 id="variable.security">
|
|
<title>$security</title>
|
|
<para>
|
|
$security true/false, default is false. Security is good for
|
|
situations when you have untrusted parties editing the templates
|
|
(via ftp for example) and you want to reduce the risk of system
|
|
security compromises through the template language. Turning on
|
|
security enforces the following rules to the template language,
|
|
unless specifially overridden with
|
|
<link linkend="variable.security.settings">$security_settings</link>:
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem>
|
|
<para>If <link linkend="variable.php.handling">$php_handling</link>
|
|
is set to SMARTY_PHP_ALLOW, this is
|
|
implicitly changed to SMARTY_PHP_PASSTHRU
|
|
</para></listitem>
|
|
<listitem>
|
|
<para>
|
|
PHP functions are not allowed in <link
|
|
linkend="language.function.if">{if}</link> statements,
|
|
except those specified in the
|
|
<link linkend="variable.security.settings">$security_settings</link>
|
|
</para></listitem>
|
|
<listitem><para>
|
|
templates can only be included from directories
|
|
listed in the
|
|
<link linkend="variable.secure.dir">$secure_dir</link> array
|
|
</para></listitem>
|
|
<listitem><para>
|
|
local files can only be fetched from directories listed in the
|
|
<link linkend="variable.secure.dir">$secure_dir</link>
|
|
array using <link linkend="language.function.fetch">{fetch}</link>
|
|
</para></listitem>
|
|
<listitem><para>
|
|
<link linkend="language.function.php">{php}{/php}</link> tags are not allowed
|
|
</para></listitem>
|
|
<listitem><para>
|
|
PHP functions are not allowed as modifiers, except those specified in the
|
|
<link linkend="variable.security.settings">$security_settings</link>
|
|
</para></listitem>
|
|
</itemizedlist>
|
|
</sect1>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
--> |