Skip to content

Invalid port pattern is recognized in the sense of RFC3986  #45

Description

@o314
u = URI("//foo.com:bar")
using Test
@test u.port == "bar"

breaks the parsing of port as expected from https://www.ietf.org/rfc/rfc3986.html#section-3.2.3

The port subcomponent of authority is designated by an optional port
number in decimal following the host and delimited from it by a
single colon (":") character.

 port        = *DIGIT

The regex part is too broad @ https://github.com/JuliaWeb/URIs.jl/blob/master/src/URIs.jl#L94

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions