From 6c03ca81fc80a32d1f2167bef75c1a060703b482 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 30 Jan 2020 14:37:06 +0100 Subject: [PATCH] removed embedded videos from the dashboard to avoid truncated js code --- .../install/files/lib/system/bbcode/AttachmentBBCode.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 37c534c916..a60667e634 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -157,7 +157,7 @@ class AttachmentBBCode extends AbstractBBCode { return $result; } - else if (substr($attachment->fileType, 0, 6) === 'video/') { + else if (substr($attachment->fileType, 0, 6) === 'video/' && $parser->getOutputType() == 'text/html') { return WCF::getTPL()->fetch('__videoAttachmentBBCode', 'wcf', [ 'attachment' => $attachment, 'attachmentIdentifier' => StringUtil::getRandomID() -- 2.20.1