lynket-browser icon indicating copy to clipboard operation
lynket-browser copied to clipboard

Bug: & not escaped in searches

Open Efreak opened this issue 5 years ago • 0 comments

It seems that lynket isn't properly escaping special characters in search URLs. I tapped a suggestion for life & times, and got a search for life. I tried typing it out myself instead of using a suggestion, and the same issue applied. The URL lynket sends me to is https://duckduckgo.com/?q=life+&+times=&ia=web; note that the & in the query is not escaped.

An easy way to tell if the ampersand specifically should be escaped (without trying to parse the entry as a URL) is to check for spaces indicating a search instead of a URL.

Edit: I thought I was clicking a close window button that unexpectedly popped up. Thx, GitHub app...

Efreak avatar Oct 31 '20 14:10 Efreak