Fixed bug that timeline can not be displayed by InvalidURIError (#2947)
This commit is contained in:
@ -123,6 +123,13 @@ RSpec.describe Formatter do
|
||||
expect(subject).to match '<p><img src="javascript:alert('XSS');"></p>'
|
||||
end
|
||||
end
|
||||
|
||||
context 'contains invalid URL' do
|
||||
let(:local_text) { 'http://www\.google\.com' }
|
||||
it 'has valid url' do
|
||||
expect(subject).to eq '<p>http://www\.google\.com</p>'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#reformat' do
|
||||
|
Reference in New Issue
Block a user