summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-28 11:22:34 +0100
committerVincent Petry <pvince81@owncloud.com>2013-10-28 14:14:55 +0100
commite62ca4ea4fc235d7ec767034a80889b2fa331e97 (patch)
tree545a37abaf90d57cccbb99fcf660331372a9ffc4 /lib
parentc61d328ab9696a620b623fb2dfd1622eb0363dc4 (diff)
downloadnextcloud-server-e62ca4ea4fc235d7ec767034a80889b2fa331e97.tar.gz
nextcloud-server-e62ca4ea4fc235d7ec767034a80889b2fa331e97.zip
Append file etag to preview URLs
Fixes #5534
Diffstat (limited to 'lib')
-rw-r--r--lib/private/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index fca08adca8b..4bb07ac534d 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -231,11 +231,11 @@ class OC_Helper {
* Returns the path to the preview of the file.
*/
public static function previewIcon($path) {
- return self::linkToRoute( 'core_ajax_preview', array('x' => 36, 'y' => 36, 'file' => urlencode($path) ));
+ return self::linkToRoute( 'core_ajax_preview', array('x' => 36, 'y' => 36, 'file' => $path ));
}
public static function publicPreviewIcon( $path, $token ) {
- return self::linkToRoute( 'core_ajax_public_preview', array('x' => 36, 'y' => 36, 'file' => urlencode($path), 't' => $token));
+ return self::linkToRoute( 'core_ajax_public_preview', array('x' => 36, 'y' => 36, 'file' => $path, 't' => $token));
}
/**