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

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Sara Golemon 2022-05-05 17:41:42 -05:00 committed by GitHub
parent db01df2dda
commit 336c23336a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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