Skip to content
Snippets Groups Projects
Unverified Commit 336c2333 authored by Sara Golemon's avatar Sara Golemon Committed by GitHub
Browse files

Allow VerifyLinkService to accept backlinks with differing case (#18320)

parent db01df2d
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ class VerifyLinkService < BaseService
links = Nokogiri::HTML(@body).xpath('//a[contains(concat(" ", normalize-space(@rel), " "), " me ")]|//link[contains(concat(" ", normalize-space(@rel), " "), " me ")]')
if links.any? { |link| link['href'] == @link_back }
if links.any? { |link| link['href'].downcase == @link_back.downcase }
true
elsif links.empty?
false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment