Page MenuHomePhabricator

Disambiguate "host.com:123" as a port, not a relative path
ClosedPublic

Authored by epriestley on Jun 28 2016, 9:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 3:10 PM
Unknown Object (File)
Thu, Apr 4, 2:24 PM
Unknown Object (File)
Sat, Mar 30, 11:19 AM
Unknown Object (File)
Feb 20 2024, 4:14 AM
Unknown Object (File)
Feb 15 2024, 4:48 PM
Unknown Object (File)
Feb 11 2024, 4:11 PM
Unknown Object (File)
Feb 8 2024, 1:58 PM
Unknown Object (File)
Feb 4 2024, 6:04 PM
Subscribers
None

Details

Summary

Ref T11222. When we parse "host.com:123", it could be a Git-style URI pointing at the file named "123" on the host. We currently interpret it as such.

Instead, always assume that completely numeric "paths" are port numbers.

Test Plan

Added failing test; made it pass.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Disambiguate "host.com:123" as a port, not a relative path.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 28 2016, 9:43 PM
This revision was automatically updated to reflect the committed changes.