summaryrefslogtreecommitdiff
path: root/sapi/apache2filter
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-11-10 19:34:09 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-11-10 19:34:09 +0000
commitb09c1afe0e88ef680a5d055ce257d87e7d0f813d (patch)
treec6a55804fcea342fa73350008a942ff85414984c /sapi/apache2filter
parentbb14455e627cf397df48e1fa855657d52efc0940 (diff)
downloadphp-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/apache2filter')
-rw-r--r--sapi/apache2filter/apache_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2filter/apache_config.c b/sapi/apache2filter/apache_config.c
index aad4fdef64..4b863062bf 100644
--- a/sapi/apache2filter/apache_config.c
+++ b/sapi/apache2filter/apache_config.c
@@ -90,7 +90,7 @@ static const char *real_flag_hnd(cmd_parms *cmd, void *dummy, const char *arg1,
{
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';