diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-11-10 19:34:09 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-11-10 19:34:09 +0000 |
commit | b09c1afe0e88ef680a5d055ce257d87e7d0f813d (patch) | |
tree | c6a55804fcea342fa73350008a942ff85414984c /sapi/apache/mod_php4.c | |
parent | bb14455e627cf397df48e1fa855657d52efc0940 (diff) | |
download | php-git-b09c1afe0e88ef680a5d055ce257d87e7d0f813d.tar.gz |
PHP flags specified in .htaccess can now be turned on by using '1' as well as
'On'.
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r-- | sapi/apache/mod_php4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 51951333fe..ce060e3c75 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -722,7 +722,7 @@ static CONST_PREFIX char *php_apache_flag_handler_ex(cmd_parms *cmd, HashTable * { char bool_val[2]; - if (!strcasecmp(arg2, "On")) { + if (!strcasecmp(arg2, "On") || (arg2[0] == '1' && arg2[1] == '\0')) { bool_val[0] = '1'; } else { bool_val[0] = '0'; |