-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redirect()->to() is changing value of the base64 parameter #790
Comments
If first conversion is ok cuz = is not safe char for uris that second one ($transformated) is at least strange.Updated: even if in case showed above sth bad can happen cuz of "=" char in $_GET[url] parameter that in case showed bellow should not:
|
Basically, you're forcing it double-encode it, which the system has no way of knowing is going on. That's up to the developer. If you're expecting a base64-encoded query var, you must take care to decode it when you need it, and before you put it into another situation where it will be encoded again. |
Please not it happen in URI class resolveRelativeURI(). |
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:
The text was updated successfully, but these errors were encountered: