Skip to content

Leading Zeros in Port Numbers #69

@gflohr

Description

@gflohr

Gratuitous leading zeros in port numbers should be stripped off. But the behavior of URI version 1.76 is:

$ perl -MURI -e "CORE::say URI->new('http://xyz:08080')->canonical->port"
08080

It already works as expected though for default ports:

$ perl -MURI -e "CORE::say URI->new('http://xyz:080')->canonical->port"
80
$ perl -MURI -e "CORE::say URI->new('https://xyz:0443')->canonical->port"
443

Metadata

Metadata

Assignees

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