HomePhabricator

Make PhutilGitURI and PhutilURI strict about leading whitespace

Description

Make PhutilGitURI and PhutilURI strict about leading whitespace

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)

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4913

Differential Revision: https://secure.phabricator.com/D8897

Details

Event Timeline