On Sep 8, 2008, at 7:04 AM, Thomas Guettler wrote: > I discovered, that double slashes get through my regular expressions. > Is it possible to reject URLs with double slashes? > > http://.../...//test// (double slash before and after "test")
Another way to approach it is to allow variable amounts of slashes -- like: (r'^test/+$', 'modwork.views.test.index'), --- David Zhou [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---