From d333774a026575a0f1f89560d2bea988fbb64b29 Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Fri, 28 Mar 2014 14:25:52 +0100 Subject: [PATCH] Add missing trailing slash to user defined attachment storage location See http://www.woltlab.com/forum/index.php/Thread/223867-Fehler-Dateianh%C3%A4nge/?postID=1333514#post1333514 --- .../install/files/lib/data/attachment/Attachment.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php index 93a7040211..65edbbba2c 100644 --- a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php @@ -4,6 +4,7 @@ use wcf\data\object\type\ObjectTypeCache; use wcf\data\DatabaseObject; use wcf\system\request\IRouteController; use wcf\system\WCF; +use wcf\util\FileUtil; /** * Represents an attachment. @@ -197,7 +198,7 @@ class Attachment extends DatabaseObject implements IRouteController { */ public static function getStorage() { if (ATTACHMENT_STORAGE) { - return ATTACHMENT_STORAGE; + return FileUtil::addTrailingSlash(ATTACHMENT_STORAGE); } return WCF_DIR . 'attachments/'; -- 2.20.1