From: Alexander Ebert Date: Wed, 1 Jul 2020 19:16:26 +0000 (+0200) Subject: Incorrect check for legacy attachment dimensions X-Git-Tag: 5.2.8~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e50446c1f7564fa80e53e7b196974de7f6527c5d;p=GitHub%2FWoltLab%2FWCF.git Incorrect check for legacy attachment dimensions --- diff --git a/wcfsetup/install/files/js/WCF.Attachment.js b/wcfsetup/install/files/js/WCF.Attachment.js index d170624e21..1f9e31cb4c 100644 --- a/wcfsetup/install/files/js/WCF.Attachment.js +++ b/wcfsetup/install/files/js/WCF.Attachment.js @@ -134,7 +134,7 @@ WCF.Attachment.Upload = WCF.Upload.extend({ var thumbnailWidth = ~~$('#' + this._editorId).data('redactor').opts.woltlab.attachmentThumbnailWidth; var thumbnail = data.attributes[2]; - thumbnail = (thumbnail === true || thumbnail === 'true' || ~~thumbnail <= thumbnailWidth); + thumbnail = (thumbnail === true || thumbnail === 'true' || (~~thumbnail && ~~thumbnail <= thumbnailWidth)); var image = elCreate('img'); image.className = 'woltlabAttachment';