heiseonline / shariff

👮 Shariff enables website users to share their favorite content without compromising their privacy.
http://ct.de/-2467514
MIT License
1.4k stars 177 forks source link

whatsapp custom url with URI in text #223

Closed birdspider closed 6 years ago

birdspider commented 7 years ago

Hi,

I'm not sure if this a shariff or whatsapp-app bug.

givean an url like https://www.example.com/a/b/c/hello+world (the plus sign is the important part) which afaik is a valid url. It gets correctly encoded like whatsapp://send?text=blabla%20https%3A%2F%2Fwww.example.com%2Fa%2Fb%2Fc%2Fhello%2Bworld by shariff.

but in the whatapp-app it is shown as:

blabla https://www.example.com/a/b/c/hello world

it decodes the plus into a space, which I think is ok for query params but not for the path.

so - is there anything one can do to encode it differently (double encode?) or is this simply a bug in the whatsapp-app ?

[EDIT] this reportedly happens on iOS only

compeak commented 6 years ago

Closing because of inactivity. Feel free to reopen.