Skip to content

Problem with empty attachment name #256

Description

@tuptuptup

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions