summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-20 07:32:21 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-20 07:32:21 +0000
commit2b15fa5b187530d55cb2d41e1451664baef4dd99 (patch)
treedddb4d7b98952d5be6eab89ef2a9f1a135953682 /roundcubemail/program
parent719bd715e1212afe2ed69009350b45874b60cd93 (diff)
#1485223: http://pear.php.net/bugs/bug.php?id=14529
git-svn-id: https://svn.roundcube.net/trunk@1661 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/lib/Mail/mime.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/Mail/mime.php b/roundcubemail/program/lib/Mail/mime.php
index 507cacab2..92c797b28 100644
--- a/roundcubemail/program/lib/Mail/mime.php
+++ b/roundcubemail/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);
}
}