Fixed bug that timeline can not be displayed by InvalidURIError (#2947)
This commit is contained in:
parent
2fba94b36e
commit
08e94d1b19
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue