-
Notifications
You must be signed in to change notification settings - Fork 5
URL corruption #24
Copy link
Copy link
Open
Description
Description:
Clink “corrupts” URL if the query part contains a character from the unwise set of characters. By corrupts, I mean percent encodes characters like “[“ or “]”. This is fine if you live in a world where all URLs obey https://url.spec.whatwg.org/, but I see URLs like https://foo.foo/?param[]=1¶m[]=2 in the wild.
The problem is if you have clink in the background and copied URL like that you will get https://foo.foo/?param%5B%5D=1¶m%5B%5D=2 which is a bug from the user point of view.
Why?
Clink internally uses url crate for URL manipulation. It percent encodes keys and values when you append pair to a query without the possibility to opt out.
What to do?
- find an alternative to url crate
- make a pull request with opt-out (highly unlikely it will be accepted because the crate follows the spec)
- fork and use that fork (i do not like the idea of supporting that kind of fork)
- let’s say it is a feature.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels