From e50446c1f7564fa80e53e7b196974de7f6527c5d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 1 Jul 2020 21:16:26 +0200 Subject: [PATCH] Incorrect check for legacy attachment dimensions --- wcfsetup/install/files/js/WCF.Attachment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.20.1