Merge pull request #6726 from owncloud/fix_6630
don't urldecode get var, php does this automatically
This commit is contained in:
commit
d7f4547717
5 changed files with 5 additions and 5 deletions
|
@ -11,7 +11,7 @@ if(!\OC_App::isEnabled('files_sharing')){
|
|||
|
||||
\OC_User::setIncognitoMode(true);
|
||||
|
||||
$file = array_key_exists('file', $_GET) ? (string) urldecode($_GET['file']) : '';
|
||||
$file = array_key_exists('file', $_GET) ? (string) $_GET['file'] : '';
|
||||
$maxX = array_key_exists('x', $_GET) ? (int) $_GET['x'] : '36';
|
||||
$maxY = array_key_exists('y', $_GET) ? (int) $_GET['y'] : '36';
|
||||
$scalingUp = array_key_exists('scalingup', $_GET) ? (bool) $_GET['scalingup'] : true;
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -11,7 +11,7 @@ if(!\OC_App::isEnabled('files_trashbin')){
|
|||
exit;
|
||||
}
|
||||
|
||||
$file = array_key_exists('file', $_GET) ? (string) urldecode($_GET['file']) : '';
|
||||
$file = array_key_exists('file', $_GET) ? (string) $_GET['file'] : '';
|
||||
$maxX = array_key_exists('x', $_GET) ? (int) $_GET['x'] : '44';
|
||||
$maxY = array_key_exists('y', $_GET) ? (int) $_GET['y'] : '44';
|
||||
$scalingUp = array_key_exists('scalingup', $_GET) ? (bool) $_GET['scalingup'] : true;
|
||||
|
|
|
@ -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 ));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
\OC_Util::checkLoggedIn();
|
||||
|
||||
$file = array_key_exists('file', $_GET) ? (string) urldecode($_GET['file']) : '';
|
||||
$file = array_key_exists('file', $_GET) ? (string) $_GET['file'] : '';
|
||||
$maxX = array_key_exists('x', $_GET) ? (int) $_GET['x'] : '36';
|
||||
$maxY = array_key_exists('y', $_GET) ? (int) $_GET['y'] : '36';
|
||||
$scalingUp = array_key_exists('scalingup', $_GET) ? (bool) $_GET['scalingup'] : true;
|
||||
|
|
Loading…
Reference in a new issue