aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-10 11:25:28 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-10 12:30:20 +0200
commitcf449d42e87b21dff0de35c394031c5fa28b56aa (patch)
tree6470fa72160bdfa6a2f44650d6a9b5a23e362ec2 /apps/files_trashbin/lib
parent8eefaba719160eb92dcb6747b5e70b7e04736cea (diff)
downloadnextcloud-server-cf449d42e87b21dff0de35c394031c5fa28b56aa.tar.gz
nextcloud-server-cf449d42e87b21dff0de35c394031c5fa28b56aa.zip
properly encode path
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/trash.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index e82a597c61e..fb99fca5b3f 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -852,6 +852,6 @@ class Trashbin {
}
public static function preview_icon($path) {
- return \OC_Helper::linkToRoute( 'core_ajax_trashbin_preview', array('x' => 44, 'y' => 44, 'file' => $path));
+ return \OC_Helper::linkToRoute( 'core_ajax_trashbin_preview', array('x' => 44, 'y' => 44, 'file' => urlencode($path) ));
}
}