mostafa-mansour1 / previewAnyFile

Cordova Plugin to preview any file in native mode by providing the local or external URL
MIT License
33 stars 31 forks source link

Fix issue with encoded urls #40

Closed Siedlerchr closed 2 years ago

Siedlerchr commented 2 years ago

I noticed that my app was crashing when the url contains whitespaces

mostafa-mansour1 commented 2 years ago

Kindly send me a sample url to check it As this line was modified before and it’s make another issue

Siedlerchr commented 2 years ago

Example: URL

https://raw.githubusercontent.com/Siedlerchr/testnestbug/master/arrow up with whitepspace.png The problem is that the wrong variable is used, the encoded value is assigned to the url variable, but at that line the old one is used (myUrl)

Siedlerchr commented 2 years ago

@mostafa-mansour1 It would be really great to have this fixed