-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Incorrect parsing of Boundary #39
Comments
After some thought, I feel the regex should be: |
Hi @AntonioDiPassio-AppSys , Best regards, |
@Webklex , yes looks like it would. |
Webklex
added a commit
that referenced
this issue
Dec 11, 2020
Hi @AntonioDiPassio-AppSys , Please update your Best regards, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Structure::getBoundary uses incorrect regex.
$boundary = $this->header->find("/boundary\=\"?(.*)\"?/");
I have a header which contains:
And the boundary gets parsed as: 004_DBAPR05MB6871D506604AD447C496F0EBE4140DBAPR05MB6871eurp";
If you change the regex to:
/boundary=\"?(.*)\"/"
, it is parsed correctly, and you don't need the str_replace afterwards.This will fix a problem where there is an inline image, and it doesn't get parsed as an attachment. (And maybe some other problems too)
The text was updated successfully, but these errors were encountered: