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
F18998416: D17647.diff
Thu, Nov 20, 6:44 PM
F18991170: D17647.id.diff
Tue, Nov 18, 9:02 PM
F18825315: D17647.id42442.diff
Thu, Oct 23, 8:57 PM
F18759332: D17647.diff
Oct 6 2025, 3:15 AM
F18711269: D17647.diff
Sep 29 2025, 3:50 AM
F18508721: D17647.id.diff
Sep 5 2025, 2:59 AM
F18500834: D17647.diff
Sep 4 2025, 9:21 PM
F18099973: D17647.id42441.diff
Aug 9 2025, 9:49 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