]> andersk Git - test.git/commitdiff
Allow unknown search parameters in the CGI URL
authorMarkus Gutschke <markus@shellinabox.com>
Thu, 15 Jan 2009 03:13:49 +0000 (03:13 +0000)
committerMarkus Gutschke <markus@shellinabox.com>
Thu, 15 Jan 2009 03:13:49 +0000 (03:13 +0000)
shellinabox/cgi_root.html

index 5c4afc16caf0ef7a5e64b06eac1dc09c31944e20..620ec619e9df9d4c217d15602a23326488619f31 100644 (file)
       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('<frameset cols="*">\n' +
-                       '<frame src="' + url +
-                          document.location.search.replace(/^\?/, '') + '#' +
+                       '<frame src="' + url + '#' +
                           encodeURIComponent(document.location.href) +
                           ',%s' + '">\n' +
                      '</frameset>');      
This page took 0.031054 seconds and 5 git commands to generate.