summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-02 16:34:05 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-02 16:34:05 +0200
commitb0a71bde15a9833dc7f1b84fea95bcd58bf73a66 (patch)
tree28fd01aa5f2e7488b86a696064f6982f0fa0f2a7 /apps/files_versions
parenteb1216f9493c78a0c1a3e49058ac1a96cd3a5a5c (diff)
downloadnextcloud-server-b0a71bde15a9833dc7f1b84fea95bcd58bf73a66.tar.gz
nextcloud-server-b0a71bde15a9833dc7f1b84fea95bcd58bf73a66.zip
maxX and maxY should be a integer
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/ajax/preview.php6
-rw-r--r--apps/files_versions/appinfo/routes.php2
2 files changed, 4 insertions, 4 deletions
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
+}
diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php
index dc36b66f39d..8d2abaa89e5 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
+});