QuinnDamerell / Baconit

A beatiful, powerful, reddit client for Windows 10.
https://www.reddit.com/r/BaconitDev/
GNU General Public License v2.0
242 stars 81 forks source link

HTML encoding breaks links with special characters, like reddituploads.com images #72

Open dreamlayers opened 8 years ago

dreamlayers commented 8 years ago

When viewing image posts, some images work in Firefox but do not work in Baconit. Those seem to be reddituploads.com images. Here are two examples:

https://www.reddit.com/r/gardening/comments/4kgm88/a_gardeners_dream/ https://www.reddit.com/r/gardening/comments/4kjsyu/hello_new_friend/

Both give:

This web page is broken Tap anywhere to open in edge

If I do that, the link opens in my default browser, Firefox. The second example gives me this link: https://i.reddituploads.com/d8dcbbbf240b48cbb0fee1b08d2d512b?fit=max&h=1536&w=1536&s=ba1a6ce014d1a29e659c71cffbd49208 The result is a web page saying "Unauthorized". Note the & where there should just be ampersands. The proper URL I would get from Reddit is: https://i.reddituploads.com/d8dcbbbf240b48cbb0fee1b08d2d512b?fit=max&h=1536&w=1536&s=ba1a6ce014d1a29e659c71cffbd49208