You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem with attachments, when filename contain diacritic symbols. For example, if original filename is "zażółć gęślą jaźń.pdf", I get an empty attachment filename.
In file IncomingMessageAttachment.php in function getName() after:
if (strtolower($param->attribute) === 'filename') {
$this->name = $param->value;
break;
}
I added:
else{
$this->name = str_replace(array("'"," ","UTF-8"),array("","",""),(urldecode($param->value));
}
Now it's works.
The text was updated successfully, but these errors were encountered:
There is a problem with attachments, when filename contain diacritic symbols. For example, if original filename is "zażółć gęślą jaźń.pdf", I get an empty attachment filename.
In file IncomingMessageAttachment.php in function getName() after:
if (strtolower($param->attribute) === 'filename') {
$this->name = $param->value;
break;
}
I added:
else{
$this->name = str_replace(array("'"," ","UTF-8"),array("","",""),(urldecode($param->value));
}
Now it's works.
The text was updated successfully, but these errors were encountered: