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
F19521099: D16187.id38942.diff
Fri, Jan 16, 7:43 PM
F19518335: D16187.id38942.diff
Thu, Jan 15, 7:51 PM
F19513940: D16187.id38942.diff
Tue, Jan 13, 7:50 PM
F19513932: D16187.id38942.diff
Tue, Jan 13, 7:47 PM
F19482043: D16187.id38937.diff
Thu, Jan 8, 12:16 AM
F19258972: D16187.diff
Dec 22 2025, 3:04 PM
F19051341: D16187.diff
Nov 28 2025, 12:30 AM
F18890481: D16187.id.diff
Nov 7 2025, 9:39 AM
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.