From: Marcel Werk Date: Thu, 30 Jan 2020 13:37:06 +0000 (+0100) Subject: removed embedded videos from the dashboard to avoid truncated js code X-Git-Tag: 5.2.2~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c03ca81fc80a32d1f2167bef75c1a060703b482;p=GitHub%2FWoltLab%2FWCF.git removed embedded videos from the dashboard to avoid truncated js code --- 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()