-
Notifications
You must be signed in to change notification settings - Fork 326
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
rawurldecode request params #630
Comments
Hi there @kohamkohane, I am sorry to reply late. Decoding the URL is the job of the web server. Just did a little test on this on a vanilla Kohana application:
received I believe you need to Let me know if this settles it. |
You are right, but it does not work with internal requests. Then params are not decoded. Maybe the best solution for this issue is deocding URL somewhere in internal requests processing? |
😮 Exactly. This is how I reproduced the bug: fresh Kohana application, changed class Controller_Welcome extends Controller {
public function action_index()
{
$this->response->body(Request::factory('welcome/internal/first%20second')->execute());
}
public function action_internal()
{
echo $this->request->param('id');
}
} and called the application from the browser: I got:
Yes. |
Please add rawurldecode to function param() in Kohana/Request. In KO 3.3.3 rawurlencode was added to function uri() in Kohana/Route. I suggest to add rawurldecode when we read these params.
The text was updated successfully, but these errors were encountered: