mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fixed double file encoding for previews
This commit is contained in:
parent
f7c291e276
commit
d49c7ad4fb
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@
|
|||
<?php else: ?>
|
||||
<div id="imgframe">
|
||||
<?php $size = \OC\Preview::isMimeSupported($_['mimetype']) ? 500 : 128 ?>
|
||||
<img src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $size, 'y' => $size, 'file' => urlencode($_['directory_path']), 't' => $_['dirToken']))); ?>" class="publicpreview"/>
|
||||
<img src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => $size, 'y' => $size, 'file' => $_['directory_path'], 't' => $_['dirToken']))); ?>" class="publicpreview"/>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="directDownload">
|
||||
|
|
|
|||
|
|
@ -996,6 +996,6 @@ class Trashbin {
|
|||
}
|
||||
|
||||
public static function preview_icon($path) {
|
||||
return \OC_Helper::linkToRoute( 'core_ajax_trashbin_preview', array('x' => 36, 'y' => 36, 'file' => urlencode($path) ));
|
||||
return \OC_Helper::linkToRoute( 'core_ajax_trashbin_preview', array('x' => 36, 'y' => 36, 'file' => $path ));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue