webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit d69d8cfa7a4d15fb081aede9e2b3e49a21fb8435
parent 7ddce5a1056e018fe04d1a356d39d8994bcf1d62
Author: Sheng <webmaster0115@gmail.com>
Date:   Sat, 27 Apr 2019 00:01:48 +0800

Fixed a bug caused by url containing hashes

Diffstat:
Mwebssh/static/js/main.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js @@ -210,7 +210,7 @@ jQuery(function($){ return; } - var ws_url = window.location.href.split('?')[0].replace('http', 'ws'), + var ws_url = window.location.href.split(/\?|#/, 1)[0].replace('http', 'ws'), join = (ws_url[ws_url.length-1] === '/' ? '' : '/'), url = ws_url + join + 'ws?id=' + msg.id, sock = new window.WebSocket(url),