diff options
author | alecpl <alec@alec.pl> | 2008-08-20 07:32:21 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-08-20 07:32:21 +0000 |
commit | 3b0eda1146992d8933614a7e60b947ae721050e1 (patch) | |
tree | 90c12745d5c0247d70f49ade99e79a3063e56544 /program | |
parent | 6f488bb55f08d64bbdd5255079a24501e55e6851 (diff) |
#1485223: http://pear.php.net/bugs/bug.php?id=14529
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/Mail/mime.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Mail/mime.php b/program/lib/Mail/mime.php index 507cacab2..92c797b28 100644 --- a/program/lib/Mail/mime.php +++ b/program/lib/Mail/mime.php @@ -350,7 +350,7 @@ class Mail_mime $err = PEAR::raiseError($msg); return $err; } - $filename = basename($filename); + $filename = substr('s_'.basename($filename), 2); if (PEAR::isError($filedata)) { return $filedata; } @@ -667,7 +667,7 @@ class Mail_mime $this->_htmlbody = preg_replace($regex, $rep, $this->_htmlbody); $this->_html_images[$key]['name'] = - basename($this->_html_images[$key]['name']); + substr(basename('s_'.$this->_html_images[$key]['name']), 2); } } |