MantisBT: master 40f71cf3

Author Committer Branch Timestamp Parent
dregad dregad master 2024-12-29 08:49 master 3a483125
Affected Issues  0005271: Support NoFollow hyperlinks for external urls
 0035210: Incorrect handling of relative URLs in helper_get_root_domain() function and caller one
Changeset

Fix nofollow attribute for relative URLs

Extract duplicated code in MantisMarkdown::processUrl() and the callback
in string_insert_hrefs() into a new helper_is_link_external() function.

Add logic to treat relative URLs as internal.

Fixes 0035210
Follow-up on issue 0005271, PR https://github.com/mantisbt/mantisbt/pull/2044

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