From f60e7e991777b7f51ce4ec235718648445356e32 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 1 Sep 2016 18:30:03 +0200 Subject: [PATCH] Fixed media bbcode auto-detect --- .../system/html/input/node/HtmlInputNodeTextParser.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php index 2e75b09faf..ff4b312265 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php @@ -356,7 +356,8 @@ class HtmlInputNodeTextParser { if (BBCodeMediaProvider::isMediaURL($link)) { if ($allowMedia) { - $element = $this->htmlInputNodeProcessor->createMetacodeElement($text, 'media', [$link]); + $element = $this->htmlInputNodeProcessor->createMetacodeElement($text, 'media', []); + $element->appendChild($element->ownerDocument->createTextNode($link)); } else { return $matches[0]; -- 2.20.1