From 3b0eda1146992d8933614a7e60b947ae721050e1 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 20 Aug 2008 03:32:21 -0400
Subject: [PATCH] #1485223: http://pear.php.net/bugs/bug.php?id=14529
---
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 507caca..92c797b 100644
--- a/program/lib/Mail/mime.php
+++ b/program/lib/Mail/mime.php
@@ -350,7 +350,7 @@
$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 @@
$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);
}
}
--
Gitblit v1.9.1