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

Invalid header results in infinite recursion #180

Closed
@TamaraGunkel

Description

@TamaraGunkel
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions