YiiMailer icon indicating copy to clipboard operation
YiiMailer copied to clipboard

Error on testMode when viewPath name contains slashes before of after

Open aloumpas opened this issue 7 years ago • 0 comments

When you run the YiiMailer on test mode and try to save the file instead of sending it, in the save function YiiMailer::save() when $filename is created, if the $this->view contains a slash in front (e.g: '/myView/') or after, then on the created file name exist a slash, and the fopen function try to find a subdirectory. I suggest, to trim the $this->view property before using it (e.g: trim($this->view, " \t\n\r\0\x0B\/") i also kept the default values from trim function).

aloumpas avatar May 11 '17 11:05 aloumpas