git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86d2ecf
)
r7089: ensure that headers['HOST'] is setup
author
Andrew Tridgell
<tridge@samba.org>
Mon, 30 May 2005 06:22:56 +0000
(06:22 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:17:14 +0000
(13:17 -0500)
swat/scripting/common.js
patch
|
blob
|
history
diff --git
a/swat/scripting/common.js
b/swat/scripting/common.js
index 0691512fb2d0051f572ecec99be1b7e9951de2d3..34f5a958dacd7589f22a9cf258ce32bf91ab1ae9 100644
(file)
--- a/
swat/scripting/common.js
+++ b/
swat/scripting/common.js
@@
-8,6
+8,13
@@
global.page = new Object();
/* 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"
*/