From b000b68a655680379ef699a04687c8a4058ce2c6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 14 Aug 2023 11:54:27 +0200 Subject: [PATCH] Fix the check of the maximum image height See https://www.woltlab.com/community/thread/301107-fehler-in-uploadformfield/ --- .../lib/system/form/builder/field/UploadFormField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php index 9b781c4083..73c3873976 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/UploadFormField.class.php @@ -279,7 +279,7 @@ class UploadFormField extends AbstractFormField 'file' => $file, ] )); - } elseif ($this->getMaximumImageHeight() !== null && $imagesize[0] > $this->getMaximumImageHeight()) { + } elseif ($this->getMaximumImageHeight() !== null && $imagesize[1] > $this->getMaximumImageHeight()) { $this->addValidationError(new FormFieldValidationError( 'maximumImageHeight', 'wcf.form.field.upload.error.maximumImageHeight', -- 2.20.1