1
0
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:
Andrew Tridgell 2005-05-30 06:22:56 +00:00 committed by Gerald (Jerry) Carter
parent 86d2ecf0f2
commit cb896a141a

View File

@ -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"
*/