Skip to content

Inconsistent parsing of magnet xt param #1084

@angrynode

Description

@angrynode

See also the tests submitted in #1083

Maybe this is out-of-scope for the url crate as magnet links are URIs but not URLs. If so, feel free to close and add a mention in the README that non-location URIs are unsupported.

In the case of magnets, BEP-0009 doesn't specify the encoding. However, the examples used do not percent-encode the xt delimiters so they should probably not be encoded at all. According to my limited testing, qBittorrent supports url-encoded xt params, but not Transmission, which confirms my intuition.

However, magnet URIs also contains actual URLs for trackers (tr params) which should 100% be url-encoded, including the : in there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions