From: Marcel Werk Date: Sat, 17 May 2014 13:11:00 +0000 (+0200) Subject: Fixed HTML syntax issue X-Git-Tag: 2.0.7~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37e0ba925983ddac07963920ba7bcc36fd39ccda;p=GitHub%2FWoltLab%2FWCF.git Fixed HTML syntax issue --- diff --git a/wcfsetup/install/files/lib/system/bbcode/ImageBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/ImageBBCode.class.php index 41edcb60a0..642d0b9cbd 100644 --- a/wcfsetup/install/files/lib/system/bbcode/ImageBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/ImageBBCode.class.php @@ -32,7 +32,12 @@ class ImageBBCode extends AbstractBBCode { } else if ($parser->getOutputType() == 'text/simplified-html') { $src = StringUtil::decodeHTML($src); - return StringUtil::getAnchorTag($src); + $path = parse_url($src, PHP_URL_PATH); + if ($path !== false) { + return StringUtil::encodeHTML(basename($path)); + } + + return ''; } } }