Skip to content

Seems to be a bug when paring multiple '@'s ? #163

@YuanchengJiang

Description

@YuanchengJiang

Hi,

I notice one difference by applying differential testing with urllib.parse.

Case 1:

URL = "https://@david:passwd@testing.xyz"
f = furl(URL)

Error: ValueError: Invalid port 'passwd@testing.xyz'. However, it should access the host 'testing.xyz' with username '@david' and password 'passwd'.

Case 2:

URL = "https://aa@bb@testing.xyz"
f = furl(URL)

Error: ValueError: Invalid host 'bb@testing.xyz'. However, it should access the host 'testing.xyz' with username 'aa@bb'.

When parsing multiple '@'s, I think the domain should be sliced by the last '@' rather than the first '@'.

Thanks,
Yuancheng

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