From: William A. Rowe Jr Date: Wed, 3 Jan 2007 23:03:20 +0000 (+0000) Subject: Correctly evaluate the HTTPS condition string. X-Git-Tag: 2.3.0~1943 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdfe83543d46452139c278d0aeeb28d8de024d81;p=apache Correctly evaluate the HTTPS condition string. PR: 40573 Submitted by: Matt Eaton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@492341 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index 87ff7a5cb7..bfc26aadd1 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -1453,7 +1453,7 @@ apr_status_t isapi_handler (request_rec *r) ap_add_common_vars(r); ap_add_cgi_vars(r); apr_table_setn(e, "UNMAPPED_REMOTE_USER", "REMOTE_USER"); - if ((val = apr_table_get(e, "HTTPS")) && strcmp(val, "on")) + if ((val = apr_table_get(e, "HTTPS")) && (strcmp(val, "on") == 0)) apr_table_setn(e, "SERVER_PORT_SECURE", "1"); else apr_table_setn(e, "SERVER_PORT_SECURE", "0");