From d6f9f2ed995f20a07fe8c1aa013d09da120f429c Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sun, 24 Oct 2010 07:13:22 +0000 Subject: [PATCH] web/jump/urls.py: modify regexp for jumper Now user can juery /jump/foo.i2p/anything and it will not produce "unknown hostname" error, instead user will be redirected to http://foo.i2p?i2paddresshelper=key --- web/jump/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/jump/urls.py b/web/jump/urls.py index eb90a13..b7546ab 100644 --- a/web/jump/urls.py +++ b/web/jump/urls.py @@ -3,6 +3,6 @@ from django.conf.urls.defaults import * urlpatterns = patterns('web.jump.views', (r'^error/', 'error'), (r'^unknown/', 'unknown'), - (r'^(.+)', 'jumper'), + (r'^([^$/]+)', 'jumper'), )