]> granicus.if.org Git - php/commitdiff
- #6136, ini_set should not be able to change the filter.default
authorPierre Joye <pajoye@php.net>
Mon, 8 May 2006 16:24:12 +0000 (16:24 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 8 May 2006 16:24:12 +0000 (16:24 +0000)
ext/filter/filter.c
ext/filter/package.xml
ext/filter/package2.xml

index a9fb1c6f8d76e99c4adde4cea8ac42a36d4c3cee..9357f2967560aab9e1e1c347893b51c456b7fc60 100644 (file)
@@ -144,8 +144,8 @@ static PHP_INI_MH(OnUpdateFlags)
 }
 
 PHP_INI_BEGIN()
-       STD_PHP_INI_ENTRY("filter.default",   "string", PHP_INI_ALL, UpdateDefaultFilter, default_filter, zend_filter_globals, filter_globals)
-       PHP_INI_ENTRY("filter.default_flags", NULL,     PHP_INI_ALL, OnUpdateFlags)
+       STD_PHP_INI_ENTRY("filter.default",   "string", PHP_INI_SYSTEM|PHP_INI_PERDIR, UpdateDefaultFilter, default_filter, zend_filter_globals, filter_globals)
+       PHP_INI_ENTRY("filter.default_flags", NULL,     PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateFlags)
 PHP_INI_END()
 /* }}} */
 
@@ -236,6 +236,7 @@ PHP_MINIT_FUNCTION(filter)
        REGISTER_LONG_CONSTANT("FILTER_FLAG_NO_PRIV_RANGE", FILTER_FLAG_NO_PRIV_RANGE, CONST_CS | CONST_PERSISTENT);
 
        sapi_register_input_filter(php_sapi_filter);
+
        return SUCCESS;
 }
 /* }}} */
@@ -428,6 +429,7 @@ static void php_zval_filter_recursive(zval *value, long filter, long flags, zval
 static zval * php_filter_get_storage(long arg TSRMLS_DC)
 {
        zval * array_ptr = NULL;
+
        switch (arg) {
                case PARSE_GET:
                        array_ptr = IF_G(get_array);
index 5f87d6cf08cba8c091fbea2ef47810c7e2b73b58..c83514df0794730f8a6aeaeec8dbf4a8007066f3 100644 (file)
@@ -33,6 +33,7 @@ of filters and mechanisms that users can use to safely access their input data.
 - Fixed Possible leak in internal sapi_filter (Pierre)
 - Added input_get_args, fetches all input in one call (Pierre)
 - Added FILTER_FLAG_SCALAR and FILTER_FLAG_ARRAY , allows or not array values (Pierre)
+- Fixed PECL bug #6136, ini_set should not be able to change the filter.default (Pierre)
   </notes>
   <filelist>
    <file role="src" name="config.m4"/>
index 8222bd3c1cb104e791ccb549ddb46f0cc0ff4567..97d58aea2a12cc79f43515edadf7a7c0316690cc 100644 (file)
@@ -39,6 +39,7 @@ of filters and mechanisms that users can use to safely access their input data.
 - Fixed Possible leak in internal sapi_filter (Pierre)
 - Added input_get_args, fetches all input in one call (Pierre)
 - Added FILTER_FLAG_SCALAR and FILTER_FLAG_ARRAY , allows or not array values (Pierre)
+- Fixed PECL bug #6136, ini_set should not be able to change the filter.default (Pierre)
  </notes>
  <contents>
   <dir name="/">