From e27073884f38a69ad7e00bf8d4d0967468a1a9a2 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Wed, 25 Apr 2018 12:29:40 +0200 Subject: [PATCH] Fix passing connection credentials in URL hash --- js/glowingbear.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/glowingbear.js b/js/glowingbear.js index a79a3a5..4f6e2de 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -912,7 +912,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $scope.init = function() { if (window.location.hash) { - var rawStr = atob(window.location.hash.substring(1)); + var rawStr = atob(window.location.hash.substring(3)); window.location.hash = ""; var spl = rawStr.split(":"); var host = spl[0];