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

Infinite imap decodeLine while loop #240

Open
jensstalder opened this issue Aug 27, 2019 · 1 comment
Open

Infinite imap decodeLine while loop #240

jensstalder opened this issue Aug 27, 2019 · 1 comment

Comments

@jensstalder
Copy link

jensstalder commented Aug 27, 2019

I just got a case where a line as follows: [LIST (\HasNoChildren) "/" {54} caused the while loop to run indefinitely.

I suspect ist this space character appended, which will cause the while (($pos = strpos($line, ' ')) !== false) { to run indefinitely? Not a nice thing to happen ^^ .

$line = trim($line) . ' ';

Im guessing {54} is a prefix to say that the next 54 Characters could contain special chars: (in my case Aufgaben/to dos/Landingpage "meine Immobilie im Alter". It probably meant the quotes.

It seams to work when I remove the space on L217.

@weierophinney
Copy link
Member

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

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

2 participants