Allow VerifyLinkService to accept backlinks with differing case (#18320)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user