0
0
Fork 0

Change link verification to ignore IDN domains (#20295)

Fix #3833
This commit is contained in:
Eugen Rochko 2022-11-10 06:27:45 +01:00 committed by GitHub
parent 78a6b871fe
commit 9965a23b04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View file

@ -66,6 +66,14 @@ RSpec.describe Account::Field, type: :model do
end
end
context 'for an IDN URL' do
let(:value) { 'http://twitter.comdougalljstatus1590357240443437057.ê.cc/twitter.html' }
it 'returns false' do
expect(subject.verifiable?).to be false
end
end
context 'for text that is not a URL' do
let(:value) { 'Hello world' }