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
F18852816: D18666.id.diff
Fri, Oct 31, 12:17 PM
F18850639: D18666.diff
Thu, Oct 30, 6:24 PM
F18755555: D18666.diff
Sun, Oct 5, 6:12 AM
F18716770: D18666.id.diff
Sep 29 2025, 12:26 PM
F18706961: D18666.diff
Sep 28 2025, 5:43 PM
F18509134: D18666.id.diff
Sep 5 2025, 3:14 AM
F18501698: D18666.diff
Sep 4 2025, 9:54 PM
F18124762: D18666.diff
Aug 13 2025, 12:44 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