[Pkg-owncloud-commits] [owncloud] 50/67: Fix parsing URL hash when no "?" was specified

David Prévot taffit at moszumanska.debian.org
Fri Jun 27 23:58:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 9de3d8225b4a0bf17bd65817eb16fdad537142df
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Wed Jun 25 12:37:11 2014 +0200

    Fix parsing URL hash when no "?" was specified
---
 core/js/js.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/core/js/js.js b/core/js/js.js
index a8dd9ca..544b266 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 '';
 	},
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list