svn commit: samba r7070 - in branches/SAMBA_4_0/swat: .
metze at samba.org
metze at samba.org
Sun May 29 11:16:45 GMT 2005
Author: metze
Date: 2005-05-29 11:16:45 +0000 (Sun, 29 May 2005)
New Revision: 7070
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7070
Log:
fix redirection when the client
doesn't send a 'Host' header
metze
Modified:
branches/SAMBA_4_0/swat/index.esp
Changeset:
Modified: branches/SAMBA_4_0/swat/index.esp
===================================================================
--- branches/SAMBA_4_0/swat/index.esp 2005-05-29 08:12:16 UTC (rev 7069)
+++ branches/SAMBA_4_0/swat/index.esp 2005-05-29 11:16:45 UTC (rev 7070)
@@ -7,7 +7,11 @@
<%
if (server['SERVER_PROTOCOL'] == "http" &&
server['TLS_SUPPORT'] == "True") {
- redirect("https://" + headers['HOST'] + request['REQUEST_URI']);
+ if (headers['HOST']) {
+ redirect("https://" + headers['HOST'] + request['REQUEST_URI']);
+ } else {
+ redirect("https://" + server['SERVER_NAME'] + ":" + server['SERVER_PORT'] + request['REQUEST_URI']);
+ }
} else {
redirect("esptest/index.esp");
}
More information about the samba-cvs
mailing list