Page MenuHomePhabricator

Don't fatal when encountering [[ <bad URI > | ... ]]
ClosedPublic

Authored by epriestley on Jun 5 2017, 12:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 28, 2:42 AM
Unknown Object (File)
Tue, Jan 28, 2:42 AM
Unknown Object (File)
Tue, Jan 28, 2:42 AM
Unknown Object (File)
Sat, Jan 25, 2:49 PM
Unknown Object (File)
Fri, Jan 24, 9:28 PM
Unknown Object (File)
Fri, Jan 24, 9:28 PM
Unknown Object (File)
Fri, Jan 24, 9:27 PM
Unknown Object (File)
Tue, Jan 21, 12:32 PM
Subscribers
None

Details

Summary

Fixes T12796. In D17647, the parser became more strict, but this remarkup rule doesn't deal with it gracefully.

Instead, detect when the parse failed and bail out.

Test Plan
  • Put [[ http://good.com#u:p@evil.com/ | broken ]] into a Remarkup document without backticks.
  • Before patch: fatal ("rejecting ambiguous URI").
  • After patch: link doesn't work (which is correct), but page does.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable