diff --git a/apps/files_versions/ajax/preview.php b/apps/files_versions/ajax/preview.php index eec2d7c1e69fc810d89be9c6dfd0ac884d7c1b6d..c24134df5347559513a2b53e344d05b33fb9a78d 100644 --- a/apps/files_versions/ajax/preview.php +++ b/apps/files_versions/ajax/preview.php @@ -12,8 +12,8 @@ if(!\OC_App::isEnabled('files_versions')){ } $file = array_key_exists('file', $_GET) ? (string) urldecode($_GET['file']) : ''; -$maxX = array_key_exists('x', $_GET) ? (int) $_GET['x'] : '44'; -$maxY = array_key_exists('y', $_GET) ? (int) $_GET['y'] : '44'; +$maxX = array_key_exists('x', $_GET) ? (int) $_GET['x'] : 44; +$maxY = array_key_exists('y', $_GET) ? (int) $_GET['y'] : 44; $version = array_key_exists('version', $_GET) ? $_GET['version'] : ''; $scalingUp = array_key_exists('scalingup', $_GET) ? (bool) $_GET['scalingup'] : true; @@ -40,4 +40,4 @@ try{ }catch(\Exception $e) { \OC_Response::setStatus(500); \OC_Log::write('core', $e->getmessage(), \OC_Log::DEBUG); -} \ No newline at end of file +} diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php index dc36b66f39dc466a9892b01d73608e3d7520f38c..8d2abaa89e5ed80cc8a5585e41394a6774d62f9b 100644 --- a/apps/files_versions/appinfo/routes.php +++ b/apps/files_versions/appinfo/routes.php @@ -11,4 +11,4 @@ OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabil $this->create('core_ajax_versions_preview', '/preview.png')->action( function() { require_once __DIR__ . '/../ajax/preview.php'; -}); \ No newline at end of file +});