Files
shaka-player/third_party
Joey Parrish 6ce9cf4ba7 fix: Fix URI encoding with plus characters (#8916)
There's no requirement that "+" characters not be used in URLs. In fact,
if you start up `python3 -m http.server` and point your browser at
`http://localhost:8000/foo+bar?bar+baz=baz+bar`, you'll see every one of
those "+" symbols sent directly to the server without encoding at all.

There is an old convention in CGI parameters to turn " " into "+", but
proper URL encoding turns " " into "%20".

The URI parser we use was assuming that "+" is always an escaped " ". So
it would decode "+" into " " and then later re-encode it into "%20".

By removing the special treatment of "+" in the URI parser, we make
requests to the correct URLs when they involve "+".

Fixes #8713
2025-07-24 13:40:47 -07:00
..