httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r492341 - /httpd/httpd/trunk/modules/arch/win32/mod_isapi.c
Date Wed, 03 Jan 2007 23:03:20 GMT
Author: wrowe
Date: Wed Jan  3 15:03:20 2007
New Revision: 492341

URL: http://svn.apache.org/viewvc?view=rev&rev=492341
Log:

  Correctly evaluate the HTTPS condition string.

PR: 40573
Submitted by: Matt Eaton <asf divinehawk.com>

Modified:
    httpd/httpd/trunk/modules/arch/win32/mod_isapi.c

Modified: httpd/httpd/trunk/modules/arch/win32/mod_isapi.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/win32/mod_isapi.c?view=diff&rev=492341&r1=492340&r2=492341
==============================================================================
--- httpd/httpd/trunk/modules/arch/win32/mod_isapi.c (original)
+++ httpd/httpd/trunk/modules/arch/win32/mod_isapi.c Wed Jan  3 15:03:20 2007
@@ -1453,7 +1453,7 @@
     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");



Mime
View raw message