It's a regex you need to escape both slashes so you are looking at //// On Mon, Sep 8, 2008 at 4:04 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> > Hi, > > 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") > > project urls.py > {{{ > urlpatterns = patterns('', > # MyApp > (r'^', include('myapp.urls')), > }}} > > myapp.urls > {{{ > urlpatterns = patterns('', > (r'^test/$', 'modwork.views.test.index'), > }}} > > > -- > Thomas Guettler, http://www.thomas-guettler.de/ > E-Mail <http://www.thomas-guettler.de/E-Mail>: guettli (*) thomas-guettler > + de > > > > > -- http://www.goldwatches.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---