-
Notifications
You must be signed in to change notification settings - Fork 327
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
URL::site() should always rawurlencode uri #631
Comments
Yeah, I think you are right on this one. I did not do any tests, but even those URL delimiters |
I could, but first let's think how rawurlencode should works in kohana. If we add rawurlencode to URL:site (in my opinion the best choicie) then we should not rawurlencode in route->url() becouse it use URL:site() so we double rawurlencode then. I think we should only rawurlencode in URL::site() no in route. What do you think about it? By the way, does route->uri() (URI not URL) should be rawurlencoded too? |
Or maybe different view. Rawurlencode parameters in route->uri() as now, and do not rawurlencode in URL:site() or rawurlencode only if URI passed to URL:site() was not encoded earilier. Anyway current if(UTF8::is_ascii($path)) in URL::site is wrong. |
I am leaning towards removing There is no way to encode a slash in there, even if the slash itself is a sub-string of a parameter. But that means breaking existing applications, so it should be done in v3.4. Let me know what do you think. |
cc @acoulton |
I agree with you. Just remove rawurlencode from URL::site. |
@enov I think I agree - remove rawurlencode from URL::site |
Now URL::site() use rawurlencode only if UTF8::is_ascii($path) is FALSE. Why? I suggest always encode uri. For example space is ascii and should be encoded!
The text was updated successfully, but these errors were encountered: