]> granicus.if.org Git - php/commitdiff
@"none" is now equivalent with "" in Apache config directives (Stig)
authorStig Bakken <ssb@php.net>
Thu, 2 Mar 2000 14:32:24 +0000 (14:32 +0000)
committerStig Bakken <ssb@php.net>
Thu, 2 Mar 2000 14:32:24 +0000 (14:32 +0000)
"none" is now equivalent with "" in Apache config directives.

sapi/apache/mod_php4.c

index 75594361929a33e166330496906cecbf0e045499..328e179080af5eaa4bec397110c5513dd7119346 100644 (file)
@@ -568,6 +568,10 @@ CONST_PREFIX char *php_apache_value_handler_ex(cmd_parms *cmd, HashTable *conf,
        }
        per_dir_entry.type = mode;
 
+       if (strcasecmp(arg2, "none") == 0) {
+               arg2 = "";
+       }
+
        per_dir_entry.key_length = strlen(arg1);
        per_dir_entry.value_length = strlen(arg2);