From: Alexander Ebert Date: Mon, 22 Feb 2021 23:05:56 +0000 (+0100) Subject: Uploading too many attachments yields an incorrect error type X-Git-Tag: 5.3.5~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9af08117d9403c18e8538058beda5da342c1f8ba;p=GitHub%2FWoltLab%2FWCF.git Uploading too many attachments yields an incorrect error type --- diff --git a/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php b/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php index f6155c1042..d7b5b08884 100644 --- a/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php +++ b/wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php @@ -115,7 +115,7 @@ class AttachmentAction extends AbstractDatabaseObjectAction implements ISortable $handler = new AttachmentHandler($this->parameters['objectType'], intval($this->parameters['objectID']), $this->parameters['tmpHash']); /** @noinspection PhpUndefinedMethodInspection */ if ($handler->count() + count($this->parameters['__files']->getFiles()) > $processor->getMaxCount()) { - throw new UserInputException('files', 'exceededQuota', [ + throw new UserInputException('files', 'reachedLimit', [ 'current' => $handler->count(), 'quota' => $processor->getMaxCount() ]);