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
F19944839: D18666.id44820.diff
Thu, Apr 16, 1:54 PM
F19921022: D18666.id44820.diff
Mon, Apr 6, 1:37 AM
F19909626: D18666.diff
Thu, Apr 2, 1:37 AM
F19899949: D18666.id44817.diff
Mon, Mar 30, 12:40 AM
F19898346: D18666.id.diff
Sun, Mar 29, 12:05 PM
F19895842: D18666.diff
Sun, Mar 29, 12:09 AM
F19076505: D18666.id.diff
Dec 1 2025, 12:18 PM
F19070918: D18666.diff
Nov 30 2025, 6:11 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