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

Attachments with longs names are not being processed #29

Open
wants to merge 1 commit into
base: 2.10.x
Choose a base branch
from

Commits on Jun 13, 2022

  1. Attachments with longs names are not being processed

    Currently, Laminas\Mail successfully identifies filenames longer than 78 chars (RFC 2822) and successfully splits them into multiple variables in \Laminas\Mail\Header\ContentDisposition::getFieldValue().
    However, the multiple variables do not get recognized in Laminas\Mime\Decode::splitHeaderField() due to this check
    strcasecmp($name, $wantedPart)
    i.e. it compares "filename*0" with "filename".
    
    To reproduce, try to process an email with an attachment with long name, for example
    "This_______________________________________________________is____________________long__________________________________name.txt"
    
    Signed-off-by: Ralev93 <[email protected]>
    Ralev93 authored Jun 13, 2022
    Configuration menu
    Copy the full SHA
    4e539fa View commit details
    Browse the repository at this point in the history