Automatically add trailing slash to mail debug file path
authorMatthias Schmidt <gravatronics@live.com>
Fri, 25 Jul 2014 11:40:20 +0000 (13:40 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 25 Jul 2014 11:40:20 +0000 (13:40 +0200)
wcfsetup/install/files/lib/system/mail/DebugMailSender.class.php

index 0b40381030017fdd5fa468f22e39199088cc0b99..647245dcef5ee5042e767f0aca55369cc25b4165 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\mail;
 use wcf\system\io\File;
+use wcf\util\FileUtil;
 
 /**
  * DebugMailSender is a debug implementation of mailsender which writes emails in
@@ -27,7 +28,7 @@ class DebugMailSender extends MailSender {
         */
        public function sendMail(Mail $mail) {
                if ($this->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));