Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: use allowlist and blocklist terminology #10209

Merged
merged 14 commits into from Jul 27, 2020

Conversation

lis2
Copy link
Contributor

@lis2 lis2 commented Jul 10, 2020

This is a PR of the renaming whitelist to allowlist and blacklist to the blocklist.

Based on @CvX advice, I changed a few variables so they read better like for example path_whitelist -> allowed_paths or whitelisted_char?(c) -> self.allowed_char?(c)

@lis2 lis2 force-pushed the allowlist-blocklist branch 4 times, most recently from db7bd18 to 5f9d55a Compare July 14, 2020 22:20
@lis2 lis2 marked this pull request as ready for review July 15, 2020 01:44
@lis2 lis2 force-pushed the allowlist-blocklist branch 5 times, most recently from 2d7785c to e57c1f8 Compare July 23, 2020 01:52
Copy link
Contributor

@udan11 udan11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, great work! 👏

Feel free to ignore any of my comments.

db/migrate/20140407202158_site_setting_comma_to_pipe.rb Outdated Show resolved Hide resolved
db/migrate/20140407202158_site_setting_comma_to_pipe.rb Outdated Show resolved Hide resolved
app/controllers/posts_controller.rb Outdated Show resolved Hide resolved
@eviltrout
Copy link
Contributor

I like all the choices for names, however I am concerned at how much could break when we merge this. I've made a post on our internal forum about it.

@lis2 lis2 requested a review from tgxworld July 26, 2020 22:55
@lis2 lis2 merged commit e0d9232 into discourse:master Jul 27, 2020
@lis2 lis2 deleted the allowlist-blocklist branch July 27, 2020 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants