Skip to content

redirect()->to() is changing value of the base64 parameter #790

Description

@nowackipawel

I made a small test and found out that sth bad happen in resolveRelativeURI() method of URI class.

Before return in that method I put:
d($uri, $relative->getQuery(), $transformed->getQuery());
and in some conditions it doesnt work as expected:

$uri string (43) "/login?url=L3BhY2thZ2UvOC1kYXlzLXBhY2thZ2U="   (correct redirection path and fragmenr)
$relative->getQuery() string (38) "url=L3BhY2thZ2UvOC1kYXlzLXBhY2thZ2U%3D"  (from (new URI()->setURI($uri))
$transformed->getQuery() string (40) "url=L3BhY2thZ2UvOC1kYXlzLXBhY2thZ2U%253D" (after: $transformed->setQuery($relative->getQuery()))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions