From: Christian Stocker Date: Thu, 6 Oct 2011 18:30:55 +0000 (+0000) Subject: Fix wrong comment X-Git-Tag: php-5.3.9RC1~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9b5d92821db7335632f8578871e2b75ac018f2a;p=php Fix wrong comment Add new xsl ini options to php.ini --- diff --git a/ext/xsl/php_xsl.c b/ext/xsl/php_xsl.c index 6e70c40ec3..6498880462 100644 --- a/ext/xsl/php_xsl.c +++ b/ext/xsl/php_xsl.c @@ -142,7 +142,9 @@ zend_object_value xsl_objects_new(zend_class_entry *class_type TSRMLS_DC) /* }}} */ PHP_INI_BEGIN() -//XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_WRITE_FILE == 44 +/* Default is not allowing any write operations. + XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_WRITE_FILE == 44 +*/ PHP_INI_ENTRY("xsl.security_prefs", "44", PHP_INI_ALL, NULL) PHP_INI_END() diff --git a/php.ini-development b/php.ini-development index 111bc11bae..aa826838bc 100644 --- a/php.ini-development +++ b/php.ini-development @@ -1896,6 +1896,12 @@ ldap.max_links = -1 [dba] ;dba.default_handler= +[xsl] +; Write operations from within XSLT are disabled by default. +; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_WRITE_FILE = 44 +; Set it to 0 to allow all operations +;xsl.security_prefs = 44 + ; Local Variables: ; tab-width: 4 ; End: diff --git a/php.ini-production b/php.ini-production index 89c1bed7c8..018874b975 100644 --- a/php.ini-production +++ b/php.ini-production @@ -1895,6 +1895,12 @@ ldap.max_links = -1 [dba] ;dba.default_handler= +[xsl] +; Write operations from within XSLT are disabled by default. +; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_WRITE_FILE = 44 +; Set it to 0 to allow all operations +;xsl.security_prefs = 44 + ; Local Variables: ; tab-width: 4 ; End: