mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
r7089: ensure that headers['HOST'] is setup
This commit is contained in:
parent
86d2ecf0f2
commit
cb896a141a
@ -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"
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user