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
F15508326: D8897.diff
Wed, Apr 16, 4:45 AM
F15457245: D8897.id21121.diff
Sun, Mar 30, 3:10 PM
F15455288: D8897.diff
Sat, Mar 29, 11:20 PM
F15437049: D8897.id21121.diff
Tue, Mar 25, 5:10 PM
F15431171: D8897.id21113.diff
Mar 24 2025, 10:56 AM
F15423677: D8897.diff
Mar 22 2025, 4:38 PM
F15413188: D8897.diff
Mar 19 2025, 5:24 PM
F15412054: D8897.id21121.diff
Mar 19 2025, 11:03 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
Branch
leadwhite
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 124
Build 124: [Placeholder Plan] Wait for 30 Seconds

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).