MantisBT: master-2.25 881f49a0

Author Committer Branch Timestamp Parent
dregad dregad master-2.25 2022-08-24 09:40 master-2.25 77608634
Affected Issues  0030791: Allow adding relation type noopener/noreferrer to outgoing links

Set noopener/noreferrer in Markdown links

URLs wrapped in angle brackets like <> are not
processed correctly (see FIXME note in MantisMarkdown::inlineUrlTag()).

This is because MantisCoreFormattingPlugin::formatted() applies
html_specialchars() first, so the < > are converted to </>
and ParseDown never calls the inlineUrlTag() method, resulting in broken
links on single-line strings (&lt;>).

On multi-line strings, the angle brackets wrapping the link remain
visible (they ought to be removed).

Fixes 0030791

mod - core/helper_api.php Diff File
mod - core/string_api.php Diff File
mod - plugins/MantisCoreFormatting/core/MantisMarkdown.php Diff File