From: Maximilian Mader Date: Fri, 28 Mar 2014 13:25:52 +0000 (+0100) Subject: Add missing trailing slash to user defined attachment storage location X-Git-Tag: 2.0.5~17^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d333774a026575a0f1f89560d2bea988fbb64b29;p=GitHub%2FWoltLab%2FWCF.git 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 --- 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/';