summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sapi/apache/mod_php4.c2
-rw-r--r--sapi/apache2filter/apache_config.c2
2 files changed, 2 insertions, 2 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';
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';