[Pkg-owncloud-commits] [owncloud] 66/67: Urlencode the share URL
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:10:47 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.
commit e65c3ef9c9f4e29511d83d9520c7f9d05c2a9bf4
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Tue Oct 23 17:55:49 2012 +0200
Urlencode the share URL
Fixes #63
---
core/js/share.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/js/share.js b/core/js/share.js
index 7968ede..2f9f100 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -313,7 +313,7 @@ OC.Share={
var file = $('#dir').val() + '/' + filename;
}
file = '/'+OC.currentUser+'/files'+file;
- var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&'+type+'='+file;
+ var link = parent.location.protocol+'//'+location.host+OC.linkTo('', 'public.php')+'?service=files&'+type+'='+encodeURIComponent(file);
$('#linkText').val(link);
$('#linkText').show('blind');
$('#showPassword').show();
--
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