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, Jul 24, 5:02 AM
Unknown Object (File)
Tue, Jul 23, 10:21 AM
Unknown Object (File)
Fri, Jul 19, 1:05 PM
Unknown Object (File)
Wed, Jul 10, 11:49 AM
Unknown Object (File)
Wed, Jul 10, 4:17 AM
Unknown Object (File)
Sat, Jun 29, 2:21 AM
Unknown Object (File)
Jun 23 2024, 9:26 PM
Unknown Object (File)
Jun 17 2024, 5:42 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