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' + '');