Skip to content

Add Nofollow for uppercased external url protocols

What does this MR do?

Fixing #22782 (closed) by updating the Banzai::Filter::ExternalLinkFilter to consider urls with non-lowercase protocols (hTTp etc) as external links.

Are there points in the code the reviewer needs to double check?

Internal links with non-lowercase protocols will also be skipped, this seemed like a simple edge case to adopt in this change.

Why was this MR needed?

To cover some instances of auto-generated, or mistyped, links not being treated as external urls.

Screenshots (if relevant)

Screen_Shot_2016-10-16_at_08.26.14 Screen_Shot_2016-10-16_at_08.26.34

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #22782 (closed)

Merge request reports