2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-08 12:06:51 +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:
Krzysztof Kotlarek 2020-07-27 10:23:54 +10:00 committed by GitHub
parent 5077cf52fd
commit e0d9232259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
130 changed files with 676 additions and 570 deletions

View file

@ -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')