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

Invalid header results in infinite recursion #180

Closed
2 tasks done
TamaraGunkel opened this issue Jul 25, 2019 · 0 comments · Fixed by #187
Closed
2 tasks done

Invalid header results in infinite recursion #180

TamaraGunkel opened this issue Jul 25, 2019 · 0 comments · Fixed by #187
Labels
Milestone

Comments

@TamaraGunkel
Copy link

  • I was not able to find an open or closed issue matching what I'm seeing.
  • This is not a question. (Questions should be asked on chat (Signup here) or our forums.)

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.

@michalbundyra michalbundyra added this to the 2.10.1 milestone Sep 27, 2019
michalbundyra added a commit that referenced this issue Nov 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants