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

[BUG] Processing ENCBINARY encoding returned base64 string #711

Open
wking0702 opened this issue May 31, 2023 · 0 comments
Open

[BUG] Processing ENCBINARY encoding returned base64 string #711

wking0702 opened this issue May 31, 2023 · 0 comments
Labels
needs investigation This will be tested / debugged or checked out.

Comments

@wking0702
Copy link

wking0702 commented May 31, 2023

In the \PhpImap\DataPartInfo::decodeAfterFetch method, the "imap_binary" function is used when processing ENCBINARY encoding. But "imap_binary" returns "base64 string" (details: https://www.php.net/manual/en/function.imap-binary.php).

Bug in this possition: src/PhpImap/DataPartInfo.php#L98

For test: run code print imap_binary("Plain text"); and print base64_decode(imap_binary("Plain text"));

Please fix this bug.

@wking0702 wking0702 added the needs investigation This will be tested / debugged or checked out. label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation This will be tested / debugged or checked out.
Projects
None yet
Development

No branches or pull requests

1 participant