Page MenuHomePhabricator

Fix an exception in the hyperlink remarkup rule for unparseable URIs
ClosedPublic

Authored by epriestley on Oct 2 2017, 2:14 PM.
Tags
None
Referenced Files
F15532612: D18666.id44820.diff
Wed, Apr 23, 4:36 PM
F15529054: D18666.id44817.diff
Tue, Apr 22, 4:21 PM
F15525155: D18666.id.diff
Mon, Apr 21, 12:32 PM
F15521970: D18666.diff
Sun, Apr 20, 5:02 PM
F15487914: D18666.id.diff
Thu, Apr 10, 6:04 PM
F15478547: D18666.diff
Tue, Apr 8, 1:01 AM
F15442148: D18666.id44817.diff
Wed, Mar 26, 9:45 PM
F15423772: D18666.id44817.diff
Mar 22 2025, 6:08 PM
Subscribers
None

Details

Summary

Ref T12526. URIs in the form http://x.y/#http://x.y/# can fail to parse. Catch these cases and ignore them, rather than throwing.

See also similar changes earlier, in D18149 and D18076.

Test Plan
  • Added failing test cases, made them pass.

Screen Shot 2017-10-02 at 7.14.34 AM.png (569×385 px, 33 KB)

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable