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
F13233564: D17647.id42442.diff
Tue, May 21, 2:24 AM
F13217481: D17647.id42441.diff
Sat, May 18, 5:41 AM
F13215117: D17647.diff
Fri, May 17, 3:08 PM
F13195302: D17647.diff
Sun, May 12, 10:17 PM
F13183425: D17647.id.diff
Fri, May 10, 8:56 AM
F13178100: D17647.diff
Wed, May 8, 8:10 PM
F13176409: D17647.id.diff
Wed, May 8, 1:42 PM
Unknown Object (File)
Tue, May 7, 10:18 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