Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with empty attachment name #256

Open
tuptuptup opened this issue Jan 4, 2021 · 0 comments
Open

Problem with empty attachment name #256

tuptuptup opened this issue Jan 4, 2021 · 0 comments

Comments

@tuptuptup
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant