diff options
author | Sara Golemon <pollita@php.net> | 2022-05-05 17:41:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 00:41:42 +0200 |
commit | 336c23336addeaf5dba42007dd2a5b3c06795d71 (patch) | |
tree | 191fa68bfaf70e3dbe1e35e1723d75b6a1b46b54 /app/services | |
parent | db01df2ddabdc39afecdbf75ccd0b4ecc292240c (diff) |
Allow VerifyLinkService to accept backlinks with differing case (#18320)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/verify_link_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/verify_link_service.rb b/app/services/verify_link_service.rb index 878a2188d..0a39d7f26 100644 --- a/app/services/verify_link_service.rb +++ b/app/services/verify_link_service.rb @@ -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 |