changeset 3005:ea3e77c4ab52

fix ValueError exception for strange url_prefix_action URLs (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 18:50:30 +0100
parents 0ae378dc1edf
children 8974561cc460
files MoinMoin/request/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request/__init__.py	Sun Jan 06 18:48:58 2008 +0100
+++ b/MoinMoin/request/__init__.py	Sun Jan 06 18:50:30 2008 +0100
@@ -1186,7 +1186,7 @@
                 if path.startswith(prefix):
                     # remove prefix and action name
                     path = path[len(prefix):]
-                    action, path = path.split('/', 1)
+                    action, path = (path.split('/', 1) + ['', ''])[:2]
                     path = '/' + path
 
             if path.startswith('/'):