Dennis P. Nikolaenko wrote:
Hello, Please consider integrating the patch in ticket #1485267
maybe in this way?:
--- mime.old 2008-09-21 10:40:36.000000000 +0200 +++ mime.php 2008-09-23 09:22:42.221738855 +0200 @@ -350,7 +350,7 @@ $err = PEAR::raiseError($msg); return $err; }
$filename = substr('s_'.basename($filename), 2);
$filename = $this->_basename($filename);
if (PEAR::isError($filedata)) {
return $filedata;
}
@@ -667,7 +667,7 @@
$this->_htmlbody = preg_replace($regex, $rep, $this->_htmlbody);
$this->_html_images[$key]['name'] =
substr(basename('s_'.$this->_html_images[$key]['name']), 2);
$this->_basename($this->_html_images[$key]['name']);
}
}
@@ -1114,6 +1114,20 @@ } }
* Get file's basename (locale independent)
*
* @param string Filename
*
* @return string Basename
* @access private
*/
return preg_replace('/^.*[\\\\\\/]/', '', $filename);
return preg_replace('/^.*[\/]/', '', $filename);
} // End of class