RSS feed not working for user name with @ in it. Fixes issue

This commit is contained in:
Tony Zhu 2013-11-14 20:33:12 +00:00
parent 7624e77524
commit 51114c8029

View File

@ -160,11 +160,11 @@ urlpatterns += patterns('helpdesk.views.public',
)
urlpatterns += patterns('',
url(r'^rss/user/(?P<user_name>[\.A-Za-z0-9_-]+)/$',
url(r'^rss/user/(?P<user_name>[\.\@A-Za-z0-9_-]+)/$',
login_required(feeds.OpenTicketsByUser()),
name='helpdesk_rss_user'),
url(r'^rss/user/(?P<user_name>[\.A-Za-z0-9_-]+)/(?P<queue_slug>[A-Za-z0-9_-]+)/$',
url(r'^rss/user/(?P<user_name>[\.\@A-Za-z0-9_-]+)/(?P<queue_slug>[A-Za-z0-9_-]+)/$',
login_required(feeds.OpenTicketsByUser()),
name='helpdesk_rss_user_queue'),