Always use the filename for non-image attachments
authorAlexander Ebert <ebert@woltlab.com>
Tue, 3 Jan 2017 13:49:46 +0000 (14:49 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 3 Jan 2017 16:35:42 +0000 (17:35 +0100)
wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php

index 1ce39dff5133931f1caaa625fe514a329a7c64e3..32454aa732617c553f7aa48f85a3778fb8b38f73 100644 (file)
@@ -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);
                        }
                }