You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
notice how %2F has been transformed into %25252F. This results in a broken URL since for incoming requests the URL is only dequoted once (as it should be).
Looking at pyramid code the first quoting happens inside StaticURLInfo.generate:
When generating a static URL the path is encoded twice. Here is an example:
notice how
%2F
has been transformed into%25252F
. This results in a broken URL since for incoming requests the URL is only dequoted once (as it should be).Looking at pyramid code the first quoting happens inside StaticURLInfo.generate:
and the again when StaticURLInfo calls route_url, which uses quote_path_segment again:
I suspect that the right fix here is to remove the quoting done in StaticURLInfo and rely on route_url to quote paths correctly.
The text was updated successfully, but these errors were encountered: