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
Unknown Object (File)
Tue, Aug 18, 8:25 PM
Unknown Object (File)
Jul 2 2026, 12:42 AM
Unknown Object (File)
Jul 2 2026, 12:42 AM
Unknown Object (File)
Jun 20 2026, 4:32 AM
Unknown Object (File)
Apr 16 2026, 1:54 PM
Unknown Object (File)
Apr 6 2026, 1:37 AM
Unknown Object (File)
Apr 2 2026, 1:37 AM
Unknown Object (File)
Mar 30 2026, 12:40 AM
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