Why django can not match double slashes correctly in URL? -



Why django can not match double slashes correctly in URL? -

i'm trying utilize url pattern:

(r'^welcome/(?p.+)/$', 'welcome'),

to match url this:

http://localhost:9000/welcome/http://google.com/

but surprise, found value of next turned out be:

http:/google.com/

it seems double slashes somehow compressed 1 slash.

why django behave , there workaround?

this django ticket might going in right direction: https://code.djangoproject.com/ticket/14346

also: diggbar modrewrite- how pass urls through modrewrite?

django

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -