mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
workaround for weird mime name encoding by evolution
This commit is contained in:
@ -474,4 +474,14 @@ function convert_days_ymd($convert) {
|
||||
}
|
||||
|
||||
|
||||
function fix_evolution_mime_name_crap($s = '') {
|
||||
if(preg_match("/iso\-\d{1,4}\-\d{1,}\'\'/i", $s)) {
|
||||
$s = preg_replace("/iso\-\d{1,4}\-\d{1,}\'\'/i", "", $s);
|
||||
$s = utf8_encode(urldecode($s));
|
||||
}
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user