| ... | @@ -119,6 +119,11 @@ describe Banzai::Filter::RelativeLinkFilter do |
... | @@ -119,6 +119,11 @@ describe Banzai::Filter::RelativeLinkFilter do |
|
|
expect { filter(act) }.not_to raise_error
|
|
expect { filter(act) }.not_to raise_error
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
it 'does not raise an exception on URIs containing invalid utf-8 byte sequences' do
|
|
|
|
act = link("%FF")
|
|
|
|
expect { filter(act) }.not_to raise_error
|
|
|
|
end
|
|
|
|
|
|
|
it 'does not raise an exception with a garbled path' do
|
|
it 'does not raise an exception with a garbled path' do
|
|
|
act = link("open(/var/tmp/):%20/location%0Afrom:%20/test")
|
|
act = link("open(/var/tmp/):%20/location%0Afrom:%20/test")
|
|
|
expect { filter(act) }.not_to raise_error
|
|
expect { filter(act) }.not_to raise_error
|
| ... | |
... | |
| ... | | ... | |