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
F17954522: D16187.diff
Fri, Aug 1, 4:06 AM
F17705740: D16187.id.diff
Jul 16 2025, 9:00 AM
F17693440: D16187.diff
Jul 15 2025, 7:47 AM
Unknown Object (File)
May 29 2025, 7:44 AM
Unknown Object (File)
May 28 2025, 12:36 PM
Unknown Object (File)
May 27 2025, 11:17 AM
Unknown Object (File)
May 25 2025, 11:44 AM
Unknown Object (File)
May 7 2025, 8:13 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.