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)
Tue, Nov 26, 5:02 AM
Unknown Object (File)
Sun, Nov 24, 12:58 PM
Unknown Object (File)
Sun, Nov 24, 12:01 AM
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
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