Skip to content

Don’t recursively sanitize child nodes when called from Sanitize

Brett Walker requested to merge bw-remove-unncessary-child-check into master

What does this MR do and why?

When using Gitlab::Utils::SanitizeNodeLink.sanitize_unsafe_links from our SanitizationFilter, which uses Sanitize, it automatically calls it for every node. We don't need to do an additional sanitize on each node's children.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports