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
Unknown Object (File)
Fri, May 3, 9:28 AM
Unknown Object (File)
Thu, Apr 25, 1:10 AM
Unknown Object (File)
Wed, Apr 17, 2:58 PM
Unknown Object (File)
Sun, Apr 14, 12:34 AM
Unknown Object (File)
Tue, Apr 9, 4:38 PM
Unknown Object (File)
Apr 1 2024, 6:55 AM
Unknown Object (File)
Apr 1 2024, 1:34 AM
Unknown Object (File)
Mar 28 2024, 1:06 AM
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).