diff --git a/Changelog.md b/Changelog.md index 09ed68d..ff0aeb3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -95,3 +95,5 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co ### v3.5.2 [2024.07.02; Maikuolan]: Merged zh and zh-TW L10N, and dropped region designations (e.g., CN, TW) in favour of script designations (e.g., Hans, Hant). + +[2024.09.02; Maikuolan]: Code-style patch. diff --git a/src/Web.php b/src/Web.php index 55a5b2a..6f59040 100644 --- a/src/Web.php +++ b/src/Web.php @@ -8,7 +8,7 @@ * License: GNU/GPLv2 * @see LICENSE.txt * - * This file: Upload handler (last modified: 2024.03.13). + * This file: Upload handler (last modified: 2024.09.02). */ namespace phpMussel\Web; @@ -365,7 +365,6 @@ public function scan() die('[phpMussel] ' . $this->Loader->ClientL10N->getString('denied') . ' ' . $TemplateData['detected']); } - /** Determine whether to send a 415 UNSUPPORTED MEDIA TYPE status code. */ if ( $this->Loader->Configuration['web']['unsupported_media_type_header'] && !empty($this->Loader->InstanceCache['blacklist_triggered']) @@ -373,10 +372,7 @@ public function scan() header('HTTP/1.0 415 Unsupported Media Type'); header('HTTP/1.1 415 Unsupported Media Type'); header('Status: 415 Unsupported Media Type'); - } - - /** Determine whether to send a 403 FORBIDDEN status code. */ - elseif ($this->Loader->Configuration['web']['forbid_on_block']) { + } elseif ($this->Loader->Configuration['web']['forbid_on_block']) { header('HTTP/1.0 403 Forbidden'); header('HTTP/1.1 403 Forbidden'); header('Status: 403 Forbidden');