Skip to content

Ampersands and equal signs break parsing #8

Description

@sllvn

First off, thanks for this util! ❤️

I've noticed that titles with ampersands are breaking the parser, e.g.

python parse.py 'org-protocol://capture?template=w&url=https%3A%2F%2Fexample.com&title=foo%20%26%20bar'

should send the title "foo & bar" through, but only characters up to the ampersand are sent ("foo " with a trailing space). This is also the case with equal signs (=).

I've worked around this by modifying parse.py but I'm not sure this is correct. Also not sure if there are other characters that cause parsing to break.

 raw_url = six.moves.urllib.parse.unquote(url.replace('%26', '%2526').replace('%3D', '%253D'))

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions