Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

getFolders - Parsing literals ends into a endless loop #191

Open
fasterforward opened this issue Jan 5, 2018 · 3 comments
Open

getFolders - Parsing literals ends into a endless loop #191

fasterforward opened this issue Jan 5, 2018 · 3 comments

Comments

@fasterforward
Copy link

fasterforward commented Jan 5, 2018

When a response contains a literal php ends in an endless loop.

See RFC about literals: https://tools.ietf.org/html/rfc3501#section-4.3

Below a snippet of the response of imap command A1 LIST "" *

* LIST (\HasNoChildren) "/" {16}
Intern/test "23"

This snippet is the cause of the endless loop. Problem seems to be the appending of a space in Zend\Mail\Protocol in method decodeLine.
$line = trim($line) . ' ';
should be

$line = trim($line) ;

@canaan5
Copy link

canaan5 commented May 6, 2018

Is there a solution for this currently? because removing the space doesn't fix it for me

@jensstalder
Copy link

jensstalder commented Aug 27, 2019

Oh didn't see this issue. Same thing here:
#240
https://github.com/zendframework/zend-mail/issues/240
I have a gues to what line causes it. Removing that extra space on the mentioned line seams to work. But I guess someone needs to write a test and make a pull request etc. etc.
Its a very serious flaw that makes scripts hang completely/indefinitely.

@michalbundyra
Copy link
Member

This repository has been closed and moved to laminas/laminas-mail; a new issue has been opened at laminas/laminas-mail#38.

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

No branches or pull requests

4 participants