diff gpp/forums/urls.py @ 289:0dd8989abef2

Fix regexes for usernames in various urls.py files to match valid Django usernames
author Brian Neal <bgneal@gmail.com>
date Thu, 23 Dec 2010 23:36:53 +0000
parents 8fd4984d5c3b
children dd673fae508d
line wrap: on
line diff
--- a/gpp/forums/urls.py	Sun Dec 05 20:58:58 2010 +0000
+++ b/gpp/forums/urls.py	Thu Dec 23 23:36:53 2010 +0000
@@ -23,7 +23,7 @@
     url(r'^post/(\d+)/$', 'goto_post', name='forums-goto_post'),
     url(r'^post/ip/(\d+)/$', 'post_ip_info', name='forums-post_ip_info'),
     url(r'^post/new/(?P<topic_id>\d+)/$', 'new_post', name='forums-new_post'),
-    url(r'^posts/(?P<username>[\w\d-]+)/$', 'posts_for_user', name='forums-posts_for_user'),
+    url(r'^posts/(?P<username>[\w.@+-]{1,30})/$', 'posts_for_user', name='forums-posts_for_user'),
     url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'),
     url(r'^unanswered/$', 'unanswered_topics', name='forums-unanswered_topics'),
     url(r'^unread/$', 'unread_topics', name='forums-unread_topics'),