From 7dc42e1f9fd2ecff97be4beeb8345e195eb6e74b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 31 Jan 2014 20:59:43 +0000 Subject: [PATCH 1/1] luci2: properly handle empty hash info, fixes endless loop with expired sids --- luci2/htdocs/luci2/luci2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js index ab7faa8..6a41e26 100644 --- a/luci2/htdocs/luci2/luci2.js +++ b/luci2/htdocs/luci2/luci2.js @@ -364,8 +364,10 @@ function LuCI2() h += keys[i] + ':' + data[keys[i]]; } - if (h) + if (h.length) location.hash = '#' + h; + else + location.hash = ''; }; this.getHash = function(key) -- 2.11.0