Skip to content

Commit bb8dc35

Browse files
authored
Fixed avatar regex
1 parent 1464141 commit bb8dc35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spongeauth/spongeauth/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
url(r'^admin/', admin.site.urls),
3535
url(r'^accounts/', include(accounts.urls, 'accounts')),
3636
url(r'^2fa/', include(twofa.urls, 'twofa')),
37-
url(r'^avatar/(?P<username>[A-Za-z_0-9]+)/?$', avatar_for_user, name='avatar-for-user'),
37+
url(r'^avatar/(?P<username>[\w-]+)/?$', avatar_for_user, name='avatar-for-user'),
3838
url(r'^sso/', include(sso.urls, 'sso')),
3939
url(r'^$', index, name='index'),
4040
url(r'^api/', include(api.urls, 'api')),

0 commit comments

Comments
 (0)