]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix parsing URL hash when no "?" was specified
authorVincent Petry <pvince81@owncloud.com>
Wed, 25 Jun 2014 10:37:11 +0000 (12:37 +0200)
committerVincent Petry <pvince81@owncloud.com>
Wed, 25 Jun 2014 10:37:11 +0000 (12:37 +0200)
core/js/js.js

index a8dd9ca889d34b6f5b74e4504807dc4c8eb4b147..544b26647a9c41973fd4b6b4f91366cbaeeb1784 100644 (file)
@@ -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 '';
        },