diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-05 01:21:51 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-05 01:21:51 -0800 |
commit | 3488202f6728261f6d140f62353ea405f2680452 (patch) | |
tree | d482789b497c1d8165a31debd5c90b6ab76a8aaf /lib/private | |
parent | f91fe8d595d3ab00dcf2e6b68fba3a92616143f5 (diff) | |
parent | 35dd568f8fd627a45d3bb090ed7e955afadec9e3 (diff) | |
download | nextcloud-server-3488202f6728261f6d140f62353ea405f2680452.tar.gz nextcloud-server-3488202f6728261f6d140f62353ea405f2680452.zip |
Merge pull request #5582 from owncloud/files-previewcaching
Append file etag to preview URLs
Diffstat (limited to 'lib/private')
-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)); } /** |