diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-25 12:37:11 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-25 12:37:11 +0200 |
commit | 9de3d8225b4a0bf17bd65817eb16fdad537142df (patch) | |
tree | 5d73674d4eca381dddafdf3e2a9d92f8a12c9cf9 | |
parent | 363f8f3205ceb1c1d1be7a2d0fec143df5384589 (diff) | |
download | nextcloud-server-9de3d8225b4a0bf17bd65817eb16fdad537142df.tar.gz nextcloud-server-9de3d8225b4a0bf17bd65817eb16fdad537142df.zip |
Fix parsing URL hash when no "?" was specified
-rw-r--r-- | core/js/js.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index a8dd9ca889d..544b26647a9 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1411,6 +1411,10 @@ OC.Util.History = { if (pos >= 0) { return hash.substr(pos + 1); } + if (hash.length) { + // remove hash sign + return hash.substr(1); + } return ''; }, |