Fix passing connection credentials in URL hash

This commit is contained in:
Piotr Dobrowolski 2018-04-25 12:29:40 +02:00 committed by GitHub
parent ca97da8513
commit e27073884f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];