Merge pull request #59 from btoueg/patch-1

Fix for usernames with capital letters
This commit is contained in:
Ken Cochrane 2016-05-27 14:12:16 -04:00
commit 1a105a6604

View file

@ -4,9 +4,9 @@ from .views import block_view, unblock_ip_view, unblock_username_view
urlpatterns = [
url(r'^blocks/$', block_view,
name="defender_blocks_view"),
url(r'^blocks/ip/(?P<ip_address>[a-z0-9-._]+)/unblock$', unblock_ip_view,
url(r'^blocks/ip/(?P<ip_address>[A-Za-z0-9-._]+)/unblock$', unblock_ip_view,
name="defender_unblock_ip_view"),
url(r'^blocks/username/(?P<username>[a-z0-9-._@]+)/unblock$',
url(r'^blocks/username/(?P<username>[A-Za-z0-9-._@]+)/unblock$',
unblock_username_view,
name="defender_unblock_username_view"),
]