Skip to content

Commit 747d6fe

Browse files
committed
Merge branch '6.1' of https://github.com/WoltLab/WCF into 6.1
2 parents 80999cb + 7060d60 commit 747d6fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wcfsetup/install/files/lib/system/html/metacode/upcast/AttachMetacodeUpcast.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public function upcast(\DOMElement $element, array $attributes): void
5959

6060
private function isThumbnailWidth(Attachment $attachment, string|bool|int $width): bool
6161
{
62-
if ($width === 'auto' || $width === false) {
62+
if ($width === 'auto' || $width === false || $width === 'false') {
6363
return false;
6464
}
65-
if ($width === true || $width === 0) {
65+
if ($width === true || $width === 'true' || $width === 0) {
6666
return true;
6767
}
6868
return !($width > $attachment->thumbnailWidth);

0 commit comments

Comments
 (0)