Skip to content

Conversation

@karanmitroo
Copy link

Doing a case insensitive match on the whitelist and blacklist list passed to the is_safe_username method.

This is the code behaviour right now

is_safe_username('hello', blacklist=['Hello'])                          
True

is_safe_username('hello', blacklist=['hello'])                         
False

This is the code behaviour as a part of this pull request

is_safe_username('hello', blacklist=['Hello'])                          
False

is_safe_username('hello', blacklist=['HELLO'])                          
False

is_safe_username('hello', blacklist=['hello'])                         
False

@theskumar
Copy link
Owner

Thanks!

@theskumar theskumar merged commit 878e2b7 into theskumar:master May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants