Skip to content

Commit 8ee62bd

Browse files
committed
Code-style patch.
1 parent 165846d commit 8ee62bd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,5 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
9595
### v3.5.2
9696

9797
[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).
98+
99+
[2024.09.02; Maikuolan]: Code-style patch.

src/Web.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Upload handler (last modified: 2024.03.13).
11+
* This file: Upload handler (last modified: 2024.09.02).
1212
*/
1313

1414
namespace phpMussel\Web;
@@ -365,18 +365,14 @@ public function scan()
365365
die('[phpMussel] ' . $this->Loader->ClientL10N->getString('denied') . ' ' . $TemplateData['detected']);
366366
}
367367

368-
/** Determine whether to send a 415 UNSUPPORTED MEDIA TYPE status code. */
369368
if (
370369
$this->Loader->Configuration['web']['unsupported_media_type_header'] &&
371370
!empty($this->Loader->InstanceCache['blacklist_triggered'])
372371
) {
373372
header('HTTP/1.0 415 Unsupported Media Type');
374373
header('HTTP/1.1 415 Unsupported Media Type');
375374
header('Status: 415 Unsupported Media Type');
376-
}
377-
378-
/** Determine whether to send a 403 FORBIDDEN status code. */
379-
elseif ($this->Loader->Configuration['web']['forbid_on_block']) {
375+
} elseif ($this->Loader->Configuration['web']['forbid_on_block']) {
380376
header('HTTP/1.0 403 Forbidden');
381377
header('HTTP/1.1 403 Forbidden');
382378
header('Status: 403 Forbidden');

0 commit comments

Comments
 (0)