Allow unknown search parameters in the CGI URL

git-svn-id: https://shellinabox.googlecode.com/svn/trunk@43 0da03de8-d603-11dd-86c2-0f8696b7b6f9
This commit is contained in:
zodiac 2009-01-15 03:13:49 +00:00
parent c57b4aedad
commit b9227e6abf

View file

@ -58,9 +58,15 @@
link.type = 'image/x-icon'; link.type = 'image/x-icon';
link.href = url + 'favicon.ico'; link.href = url + 'favicon.ico';
head.appendChild(link); head.appendChild(link);
var query = document.location.search.split('&');
for (var i = 0; i < query.length; i++) {
if (query[i] == 'plain') {
url += '/plain';
break;
}
}
document.write('<frameset cols="*">\n' + document.write('<frameset cols="*">\n' +
'<frame src="' + url + '<frame src="' + url + '#' +
document.location.search.replace(/^\?/, '') + '#' +
encodeURIComponent(document.location.href) + encodeURIComponent(document.location.href) +
',%s' + '">\n' + ',%s' + '">\n' +
'</frameset>'); '</frameset>');