]> granicus.if.org Git - php/commitdiff
Fix wrong comment
authorChristian Stocker <chregu@php.net>
Thu, 6 Oct 2011 18:30:55 +0000 (18:30 +0000)
committerChristian Stocker <chregu@php.net>
Thu, 6 Oct 2011 18:30:55 +0000 (18:30 +0000)
Add new xsl ini options to php.ini

ext/xsl/php_xsl.c
php.ini-development
php.ini-production

index 6e70c40ec367bce2f58f38f3a36543e421d5a924..6498880462445552e019fe106deddc443a90e9b9 100644 (file)
@@ -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()
 
index 111bc11bae617e0859c541fe150286284b74b30c..aa826838bc217e85df67a623182b21bce1efc6e3 100644 (file)
@@ -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:
index 89c1bed7c8a73604d680c216600a4f9d84f5b3a8..018874b9754a3d463410dceef0ab566493c307cc 100644 (file)
@@ -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: