[Pkg-owncloud-commits] [owncloud] 187/457: Escape single quotes

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:06:01 UTC 2015


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

taffit pushed a commit to branch stable8
in repository owncloud.

commit f05ac47eb65c1bb418d89636c660093c79e4bef5
Author: Olivier Paroz <oparoz at users.noreply.github.com>
Date:   Fri May 29 18:34:38 2015 +0200

    Escape single quotes
---
 core/js/oc-dialogs.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 8ebce84..9f88c26 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -389,6 +389,8 @@ var OCdialogs = {
 				forceIcon:	0
 			};
 			var previewpath = OC.generateUrl('/core/preview.png?') + $.param(urlSpec);
+			// Escaping single quotes
+			previewpath = previewpath.replace(/'/g, "%27")
 			$originalDiv.find('.icon').css({"background-image":   "url('" + previewpath + "')"});
 			getCroppedPreview(replacement).then(
 				function(path){

-- 
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