summaryrefslogtreecommitdiffstats
path: root/django_authopenid/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'django_authopenid/util.py')
-rw-r--r--django_authopenid/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django_authopenid/util.py b/django_authopenid/util.py
index edb6808e..2b9d44a2 100644
--- a/django_authopenid/util.py
+++ b/django_authopenid/util.py
@@ -28,7 +28,7 @@ def clean_next(next):
return DEFAULT_NEXT
next = str_to_unicode(urllib.unquote(next), 'utf-8')
next = next.strip()
- if next.startswith('/'):
+ if next.startswith('/') and len(next)>1:
return next
return DEFAULT_NEXT