e-alfred / ocDownloader_webextension

Chromium- and Firefox-compatible extension to add downloads to ocDownloader directly form your browser
14 stars 6 forks source link

"Invalid URL" error if URL contains some symbols #10

Open skynick11 opened 5 years ago

skynick11 commented 5 years ago

ocDownloader_webextension 1.6.2

  1. Create an index.html file with next contend
<html>
<head></head>
<body>

<a href="https://storage-waterfox.netdna-ssl.com/Waterfox/aurora/WINNT/Waterfox%2068.0a1%20Setup.exe">1111</a>
<a href="https://storage-waterfox.netdna-ssl.com/Waterfox/aurora/WINNT/Waterfox 68.0a1 Setup.exe">2222</a>
</body>
</html>
  1. Open it on Firefox 68.0

  2. Try to use "Download with ocDownloader" in context menu for "1111" or "2222" (it's really the same URL, but in different encodings)... Popup "Invalid URL" is displayed and no download is started.

But urls without spaces are opened well.

basxto commented 4 years ago

I entered the URL with spaces into the ocDownloader app and it reports it as an invalid URL, so it is not caused by the webextension. Spaces could be replaced with %20, though.