diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-28 11:22:34 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-28 14:14:55 +0100 |
commit | e62ca4ea4fc235d7ec767034a80889b2fa331e97 (patch) | |
tree | 545a37abaf90d57cccbb99fcf660331372a9ffc4 /lib | |
parent | c61d328ab9696a620b623fb2dfd1622eb0363dc4 (diff) | |
download | nextcloud-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.php | 4 |
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)); } /** |