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
This is due to the WSGI spec, it's not possible to fix in Flask. See #2507, #900, pallets/werkzeug#21, and other previous discussions.
The dev server, and some production servers, provide the non-standard REQUEST_URI or RAW_URI in the environ, you might be able to write a middleware to treat that as PATH_INFO.
Issue
Hello, we found this unexpected behaviour.
Seems that in the route evaluation, the URI is url decoded at first and then the variables are evaluated.
Example1:
one variable of generic type that contain a slash encoded in %2F
got: 404 Not Found
expected: HTTP 200 OK param = "ab%2Fcd" or param = "ab/cd"
Example2:
two variables of path type that contains each a slash encoded in %2F
got:
param1="a"
param2="b/c/d"
expected:
param1="a%2Fb"
param2="c%2Fd"
or
param1="a/b"
param2="c/d"
Environment
Whole code to test the examples:
The text was updated successfully, but these errors were encountered: