removed embedded videos from the dashboard to avoid truncated js code
authorMarcel Werk <burntime@woltlab.com>
Thu, 30 Jan 2020 13:37:06 +0000 (14:37 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 30 Jan 2020 13:37:06 +0000 (14:37 +0100)
wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php

index 37c534c91647be9779ca6c24878ff47e93c92ec1..a60667e634aa45d76c122e6ece703699e8401b31 100644 (file)
@@ -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()