diff options
-rw-r--r-- | templatetags/poll_extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templatetags/poll_extras.py b/templatetags/poll_extras.py index 720fb59..bdfbbc5 100644 --- a/templatetags/poll_extras.py +++ b/templatetags/poll_extras.py @@ -36,7 +36,7 @@ def strip_page(value): print repr(value), repr(value)[-2] if not value: return value - if value.endswith('/'): + if value.endswith('/') and value[-3] == '/': end_with_number = False try: if int(value[-2]) in range(0,10): |