[Pkg-owncloud-commits] [owncloud] 54/73: Sanitize file names
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:09:11 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.0.10
in repository owncloud.
commit 1772f369503d5f480e2858e8196ae2be9408ad70
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Fri Oct 12 15:43:46 2012 +0200
Sanitize file names
---
apps/files_versions/js/versions.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js
index 5e46b2a..1a1712c 100644
--- a/apps/files_versions/js/versions.js
+++ b/apps/files_versions/js/versions.js
@@ -36,7 +36,7 @@ function createVersionsDropdown(filename, files) {
var historyUrl = OC.linkTo('files_versions', 'history.php') + '?path='+encodeURIComponent( $( '#dir' ).val() ).replace( /%2F/g, '/' )+'/'+encodeURIComponent( filename );
- var html = '<div id="dropdown" class="drop" data-file="'+files+'">';
+ var html = '<div id="dropdown" class="drop" data-file="'+escapeHTML(files)+'">';
html += '<div id="private">';
html += '<select data-placeholder="Saved versions" id="found_versions" class="chzen-select" style="width:16em;">';
html += '<option value=""></option>';
--
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