HomePhabricator

(stable) Fix an exception in the hyperlink remarkup rule for unparseable URIs

Description

(stable) Fix an exception in the hyperlink remarkup rule for unparseable URIs

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)

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T12526

Differential Revision: https://secure.phabricator.com/D18666