From: Alexander Ebert Date: Tue, 3 Jan 2017 13:49:46 +0000 (+0100) Subject: Always use the filename for non-image attachments X-Git-Tag: 3.0.0~71 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc75b349ec2e22e36a3a8c44e3c8e0e501219144;p=GitHub%2FWoltLab%2FWCF.git Always use the filename for non-image attachments --- diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 1ce39dff51..32454aa732 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -131,7 +131,7 @@ class AttachmentBBCode extends AbstractBBCode { // file return StringUtil::getAnchorTag(LinkHandler::getInstance()->getLink('Attachment', [ 'object' => $attachment - ]), ((!empty($content) && $content != $attachmentID) ? $content : $attachment->filename)); + ]), $attachment->filename); } }