wil-shiftinsert
03/04/2022, 3:21 PMroute( "echo/:id", "echo.test" );
and this echo test handler
writedump(rc);
abort;
if I call http://myserver/echo/someValue id = someValue
. That makes sense
if I call http://myserver:/echo/%2Fsome%2Fpage id = some
instead of id = %2Fsome%2Fpage
or id = /some/page
. I would expect the router would leave urlencoded values alone and put the exact value in the id url parameter.
If I do someaction?id=%2Fsome%2Fpage
the value will exactly be id = /some/page
which is correct. So what is the coldbox router doing here. Parsing the url, and decoding BEFORE it is matching a route? That way you can never enter special characters in a path parameter.wil-shiftinsert
03/04/2022, 3:31 PM