Skip to Content
0
Former Member
Jun 05, 2017 at 05:28 PM

encoded slash in url

750 Views

We have a controller GET mapping like /myurl/{userid}

The userid is sent as an encoded value and that encoded value has a forward slash in it ("/"). Having a slash in the url causes a 404 error because it reads the "/" as a path divider. We've updated the sender to encode the slash as %2F, but we still get a 404 not found and it appears to be decoding the "/" before mapping. An example of the final url is https://mysiteurl.com/myurl/abc%2Fdef but it ends up being treated as https://mysiteurl.com/myurl/abc/def.

I've looked at the documentation for XSS filter but don't see anything about /, so does anyone else have any suggestions/pointers to allow the embedded encoded slash to pass through?