mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
FIX: use allowlist and blocklist terminology (#10209)
This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.
This commit is contained in:

committed by
GitHub

parent
5077cf52fd
commit
e0d9232259
@ -402,7 +402,7 @@ RSpec.describe UploadCreator do
|
||||
end
|
||||
end
|
||||
|
||||
describe '#whitelist_svg!' do
|
||||
describe '#clean_svg!' do
|
||||
let(:b64) do
|
||||
Base64.encode64('<svg onmouseover="alert(alert)" />')
|
||||
end
|
||||
@ -428,7 +428,7 @@ RSpec.describe UploadCreator do
|
||||
|
||||
it 'removes event handlers' do
|
||||
begin
|
||||
UploadCreator.new(file, 'file.svg').whitelist_svg!
|
||||
UploadCreator.new(file, 'file.svg').clean_svg!
|
||||
file_content = file.read
|
||||
expect(file_content).not_to include('onload')
|
||||
expect(file_content).to include('#pathdef')
|
||||
|
Reference in New Issue
Block a user