MantisBT: master 9cb002ec

Author Committer Branch Timestamp Parent
dregad dregad master 2024-12-29 19:20 master 8155682b
Affected Issues  0035210: Incorrect handling of relative URLs in helper_get_root_domain() function and caller one
Changeset

Add tests for external URLs and nofollow

  • testLinkIsExternal: checks that helper_is_link_external() correctly
    detects external URLs.
  • testNoFollow: verifies that helper_get_link_attributes() sets the
    nofollow attribute (LINKS_NOFOLLOW_EXTERNAL) as appropriate for
    internal and external links.

Issue 0035210

mod - tests/Mantis/Helper/GetLinkAttributesTest.php Diff File