summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-01-10 15:02:26 +0100
committerVincent Petry <pvince81@owncloud.com>2014-01-10 15:02:26 +0100
commit1042733634622b234beb52e24505d56a9883b4eb (patch)
tree4300040f44d951823645d35d98e1b263de49fd07 /apps/files/js/fileactions.js
parentb24c21b00f0116e8749f37646cc25f798992bf05 (diff)
downloadnextcloud-server-1042733634622b234beb52e24505d56a9883b4eb.tar.gz
nextcloud-server-1042733634622b234beb52e24505d56a9883b4eb.zip
Fixed various file name escaping issues in core apps
- Refactored file tr lookup into FileList.findFileEl that uses filterAttr to avoid escaping issues in jQuery selectors - Fixed versions and sharing app to properly escape file names in attributes
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 03e23189a97..74bb711ef3d 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -71,7 +71,7 @@ var FileActions = {
FileActions.currentFile = parent;
var actions = FileActions.get(FileActions.getCurrentMimeType(), FileActions.getCurrentType(), FileActions.getCurrentPermissions());
var file = FileActions.getCurrentFile();
- if ($('tr[data-file="'+file+'"]').data('renaming')) {
+ if (FileList.findFileEl(file).data('renaming')) {
return;
}