mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +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
@ -40,7 +40,7 @@ QUnit.test("displayEdit", async function(assert) {
|
||||
const html = `<div class="revision-content">
|
||||
<p><img src="/uploads/default/original/1X/6b963ffc13cb0c053bbb90c92e99d4fe71b286ef.jpg" alt="" class="diff-del"><img/src=x onerror=alert(document.domain)>" width="276" height="183"></p>
|
||||
</div>
|
||||
<aside class="onebox whitelistedgeneric">
|
||||
<aside class="onebox allowlistedgeneric">
|
||||
<header class="source">
|
||||
<img src="/uploads/default/original/1X/1b0984d7ee08bce90572f46a1950e1ced436d028.png" class="site-icon" width="32" height="32">
|
||||
<a href="https://meta.discourse.org/t/discourse-version-2-5/125302">Discourse Meta – 9 Aug 19</a>
|
||||
@ -69,7 +69,7 @@ QUnit.test("displayEdit", async function(assert) {
|
||||
const expectedOutput = `<div class="revision-content">
|
||||
<p><img src="/uploads/default/original/1X/6b963ffc13cb0c053bbb90c92e99d4fe71b286ef.jpg" alt class="diff-del">" width="276" height="183"></p>
|
||||
</div>
|
||||
<aside class="onebox whitelistedgeneric">
|
||||
<aside class="onebox allowlistedgeneric">
|
||||
<header class="source">
|
||||
<img src="/uploads/default/original/1X/1b0984d7ee08bce90572f46a1950e1ced436d028.png" class="site-icon" width="32" height="32">
|
||||
<a href="https://meta.discourse.org/t/discourse-version-2-5/125302">Discourse Meta – 9 Aug 19</a>
|
||||
|
@ -3534,9 +3534,9 @@ export default {
|
||||
},
|
||||
{
|
||||
id: 26628,
|
||||
title: "Embed blacklist selector is broken",
|
||||
fancy_title: "Embed blacklist selector is broken",
|
||||
slug: "embed-blacklist-selector-is-broken",
|
||||
title: "Embed blocklist selector is broken",
|
||||
fancy_title: "Embed blocklist selector is broken",
|
||||
slug: "embed-blocklist-selector-is-broken",
|
||||
posts_count: 11,
|
||||
reply_count: 7,
|
||||
highest_post_number: 11,
|
||||
|
@ -810,7 +810,7 @@ export function applyDefaultHandlers(pretender) {
|
||||
200,
|
||||
{ "Content-Type": "application/html" },
|
||||
`
|
||||
<aside class="onebox whitelistedgeneric">
|
||||
<aside class="onebox allowlistedgeneric">
|
||||
<header class="source">
|
||||
<a href="http://test.com/somepage" target="_blank">test.com</a>
|
||||
</header>
|
||||
|
@ -36,7 +36,7 @@ QUnit.test("load - failed onebox", async assert => {
|
||||
|
||||
QUnit.test("load - successful onebox", async assert => {
|
||||
const html = `
|
||||
<aside class="onebox whitelistedgeneric">
|
||||
<aside class="onebox allowlistedgeneric">
|
||||
<header class="source">
|
||||
<a href="http://test.com/somepage" target="_blank">test.com</a>
|
||||
</header>
|
||||
|
@ -893,7 +893,7 @@ QUnit.test("Code Blocks", assert => {
|
||||
assert.cooked(
|
||||
"```eviltrout\nhello\n```",
|
||||
'<pre><code class="lang-auto">hello\n</code></pre>',
|
||||
"it doesn't not whitelist all classes"
|
||||
"it doesn't not allowlist all classes"
|
||||
);
|
||||
|
||||
assert.cooked(
|
||||
|
Reference in New Issue
Block a user