closure: Fix uri query parameter encoding#434
Conversation
|
I'm pretty sure this is working as intended. If someone tries to resolve a relative URI that contains encoded query data, this will create a new absolute URI with the encoded params exactly as they are. Then, if someone tries to call a method like getEncodedQuery later on the absolute URI, it will double encode the query data. |
|
@joeltine Sorry for the late response. If someone tries to resolve a relative URI that contains encoded query data, this will create a new absolute URI with the encoded params exactly as they are. - This is what this patch set is supposed to fix. Currently, the I would have expected that both of the expressions below would do the same thing: This is not the case in the current version of the library. |
|
Thanks for the code snippet, I see the issue now. Unfortunately, I can't reopen the PR. It looks like the branch changed. My concern is that this change could be hard to land internally. People may have been coding based on the current behavior for I'm going to run some tests on the change to get a sense for the breakages. |
|
Moved the issue to #585 |
This fixes handling of URIs with special characters. Without this patch, segment URIs such as e.g. http://example.com/0.webm?param=%26 may be translated to http://example.com/0.webm?param=&.
Fixed in shaka-player: shaka-project/shaka-player#40