From 4e16237ac86fa9e6267eb9c55b2f2048fadeb12a Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 25 Jul 2014 13:40:20 +0200 Subject: [PATCH] Automatically add trailing slash to mail debug file path --- .../install/files/lib/system/mail/DebugMailSender.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/mail/DebugMailSender.class.php b/wcfsetup/install/files/lib/system/mail/DebugMailSender.class.php index 0b40381030..647245dcef 100644 --- a/wcfsetup/install/files/lib/system/mail/DebugMailSender.class.php +++ b/wcfsetup/install/files/lib/system/mail/DebugMailSender.class.php @@ -1,6 +1,7 @@ log === null) { - $this->log = new File(MAIL_DEBUG_LOGFILE_PATH.'mail.log', 'ab'); + $this->log = new File(FileUtil::addTrailingSlash(MAIL_DEBUG_LOGFILE_PATH).'mail.log', 'ab'); } $this->log->write($this->printMail($mail)); -- 2.20.1