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:
parent
c57b4aedad
commit
b9227e6abf
1 changed files with 8 additions and 2 deletions
|
@ -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>');
|
||||||
|
|
Loading…
Reference in a new issue