summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-29 17:23:44 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-07-30 13:52:40 +0200
commitc066320208da5211abe7e244bd2b045009367518 (patch)
tree908b5f6aee85d8313b077f550cb809fdab6400df /apps/files_sharing/ajax
parent06d118d06c0def5a33aab64c6a2c20f79944b378 (diff)
downloadnextcloud-server-c066320208da5211abe7e244bd2b045009367518.tar.gz
nextcloud-server-c066320208da5211abe7e244bd2b045009367518.zip
Also keep maxY into account when scaling a preview while preserving aspect ratio
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/publicpreview.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/files_sharing/ajax/publicpreview.php b/apps/files_sharing/ajax/publicpreview.php
index 0b2af7a6e59..f5343a7ef26 100644
--- a/apps/files_sharing/ajax/publicpreview.php
+++ b/apps/files_sharing/ajax/publicpreview.php
@@ -70,10 +70,6 @@ if(substr($path, 0, 1) === '/') {
$path = substr($path, 1);
}
-if ($keepAspect === true) {
- $maxY = $maxX;
-}
-
if($maxX === 0 || $maxY === 0) {
\OC_Response::setStatus(\OC_Response::STATUS_BAD_REQUEST);
\OC_Log::write('core-preview', 'x and/or y set to 0', \OC_Log::DEBUG);