megatools icon indicating copy to clipboard operation
megatools copied to clipboard

megadl considers urls with urlencoded characters to be invalid

Open m42a opened this issue 8 years ago • 4 comments

For example, https://mega.nz/#%21... is considered invalid, whereas the equivalent https://mega.nz/#!... is considered valid. They should both work, since they mean the same thing.

m42a avatar Aug 06 '17 15:08 m42a

We can use the following library. https://github.com/BaseMax/DecodeQueryStringC This is done by me.

I am also interested in contributing to this. no problem? @megous

BaseMax avatar Mar 24 '19 16:03 BaseMax

Glib already has a function to decode URL encoded strings.

https://developer.gnome.org/glib/stable/glib-URI-Functions.html#g-uri-unescape-string

Megous avatar Mar 24 '19 16:03 Megous

You can try the master branch, if it works.

Megous avatar Mar 24 '19 17:03 Megous

Check the pull report. :+1:

https://github.com/megous/megatools/pull/442

BaseMax avatar Mar 24 '19 23:03 BaseMax