Page MenuHomePhabricator

Reject ambiguous URIs with unescaped "#" or "?" in username/password parts
ClosedPublic

Authored by epriestley on Apr 10 2017, 4:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 7:30 PM
Unknown Object (File)
Mon, Nov 18, 1:12 AM
Unknown Object (File)
Sat, Nov 16, 6:46 AM
Unknown Object (File)
Fri, Nov 15, 7:43 PM
Unknown Object (File)
Tue, Nov 12, 9:51 AM
Unknown Object (File)
Sat, Nov 9, 1:21 PM
Unknown Object (File)
Sat, Nov 9, 1:20 PM
Unknown Object (File)
Sat, Nov 9, 1:20 PM
Subscribers
None

Details

Summary

Fixes T12526. These URIs are ambiguous and nonstandard, and different versions of different clients parse them differently.

Instead of trying to get this right across PHP versions, just reject these outright. No normal user will ever expect these to work.

Test Plan

Ran unit tests in PHP 7.1, got clean results. See T12526 for more discussion.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable