]> granicus.if.org Git - apache/commitdiff
Correctly evaluate the HTTPS condition string.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 3 Jan 2007 23:03:20 +0000 (23:03 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 3 Jan 2007 23:03:20 +0000 (23:03 +0000)
PR: 40573
Submitted by: Matt Eaton <asf divinehawk.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@492341 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/win32/mod_isapi.c

index 87ff7a5cb76352428b0dd422c5b5c86134459210..bfc26aadd1f487495f3ebd8c23b19384133d4dc1 100644 (file)
@@ -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");