svn commit: samba r7089 - in branches/SAMBA_4_0/swat/scripting: .

tridge at samba.org tridge at samba.org
Mon May 30 06:22:56 GMT 2005


Author: tridge
Date: 2005-05-30 06:22:56 +0000 (Mon, 30 May 2005)
New Revision: 7089

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7089

Log:
ensure that headers['HOST'] is setup

Modified:
   branches/SAMBA_4_0/swat/scripting/common.js


Changeset:
Modified: branches/SAMBA_4_0/swat/scripting/common.js
===================================================================
--- branches/SAMBA_4_0/swat/scripting/common.js	2005-05-30 06:15:01 UTC (rev 7088)
+++ branches/SAMBA_4_0/swat/scripting/common.js	2005-05-30 06:22:56 UTC (rev 7089)
@@ -8,6 +8,13 @@
 /* fill in some defaults */
 global.page.title = "Samba Web Administration Tool";
 
+
+/* if the browser was too dumb to set the HOST header, then
+   set it now */
+if (headers['HOST'] == undefined) {
+	headers['HOST'] = server['SERVER_HOST'] + ":" + server['SERVER_PORT'];
+}
+
 /*
   show the page header. page types include "plain" and "column" 
 */



More information about the samba-cvs mailing list