maxX and maxY should be a integer

This commit is contained in:
Bjoern Schiessle 2013-10-02 16:34:05 +02:00
parent eb1216f949
commit b0a71bde15
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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';
});
});