From b0a71bde15a9833dc7f1b84fea95bcd58bf73a66 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 2 Oct 2013 16:34:05 +0200 Subject: maxX and maxY should be a integer --- apps/files_versions/ajax/preview.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files_versions/ajax') diff --git a/apps/files_versions/ajax/preview.php b/apps/files_versions/ajax/preview.php index eec2d7c1e69..c24134df534 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 +} -- cgit v1.2.3