python - Flask: Prevent HTML escaping in the browser's URL bar -


i working on restful api in flask. allows wildcards used. problem when url entered, such mysite.com/get/abc*, flask turns url mysite.com/get/abc%2a, both on backend , in browser's url bar.

this easy enough handle on backend, how can prevent browser's url bar containing ugly things '%2a'?

it not flask turns * %2a, browser.

character * not legal in url , there nothing can it. browsers must escape illegal characters in sent requests. browser might leave * in address bar (and escape silently), should not expect browsers so.


Comments