Page MenuHomePhabricator

Make PhutilGitURI and PhutilURI strict about leading whitespace
ClosedPublic

Authored by epriestley on Apr 29 2014, 5:34 PM.
Tags
None
Referenced Files
F19511840: D8897.id21121.diff
Mon, Jan 12, 8:29 AM
F19509172: D8897.diff
Sat, Jan 10, 4:09 PM
F19504622: D8897.id21113.diff
Fri, Jan 9, 5:42 AM
F18997503: D8897.id.diff
Nov 20 2025, 1:28 PM
F18992217: D8897.diff
Nov 19 2025, 1:28 AM
F18875294: D8897.diff
Nov 5 2025, 5:29 PM
F18841473: D8897.id.diff
Oct 28 2025, 9:25 AM
F18840201: D8897.diff
Oct 27 2025, 10:24 PM
Subscribers

Details

Summary

Fixes T4913. We silently accept git and normal URIs with leading spaces, but other systems will not accept these. Instead, fail to parse these so they don't get into the system if we're validating URIs.

Test Plan

Screen_Shot_2014-04-29_at_10.33.52_AM.png (956×1 px, 122 KB)

Diff Detail

Repository
rPHU libphutil
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Make PhutilGitURI and PhutilURI strict about leading whitespace.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.

Ah - thanks for discussion in T4913.

This revision is now accepted and ready to land.Apr 29 2014, 5:47 PM
epriestley updated this revision to Diff 21121.

Closed by commit rPHU1490f4fa10c8 (authored by @epriestley).