From b9227e6abf6cada7fd6de16ff77bdb5393f13e64 Mon Sep 17 00:00:00 2001 From: zodiac Date: Thu, 15 Jan 2009 03:13:49 +0000 Subject: [PATCH] Allow unknown search parameters in the CGI URL git-svn-id: https://shellinabox.googlecode.com/svn/trunk@43 0da03de8-d603-11dd-86c2-0f8696b7b6f9 --- shellinabox/cgi_root.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/shellinabox/cgi_root.html b/shellinabox/cgi_root.html index 5c4afc1..620ec61 100644 --- a/shellinabox/cgi_root.html +++ b/shellinabox/cgi_root.html @@ -58,9 +58,15 @@ link.type = 'image/x-icon'; link.href = url + 'favicon.ico'; 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('\n' + - '\n' + '');