This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Description
Hey,
I'm using Zend Framework 3 in one of my projects and I'm encountering an issue during redirection. I wanted to pass a query parameter that includes \r and \n. However, the server stops responding because Zend enters an infinite recursion loop in this line.
To avoid this issue, I'm URL encoding the query parameter.
Code to reproduce the issue
(in some Controller)
return $this->redirect()
->toUrl('/mail-campaign/edit?testMailSent=false&message=test \r \n test');
Expected results
Zend should throw an error if the header is invalid.
Actual results
Zend is entering infinite loop.