changeset 2928:0ebdd15de1d8 beta

fix routing regex for compare branches with / and other special chars
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 16 Oct 2012 23:34:34 +0200
parents 58bb350bfef8
children f3b913b76be1
files rhodecode/config/routing.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/config/routing.py	Tue Oct 16 00:39:24 2012 +0200
+++ b/rhodecode/config/routing.py	Tue Oct 16 23:34:34 2012 +0200
@@ -435,7 +435,7 @@
                  revision='tip', conditions=dict(function=check_repo))
 
     rmap.connect('compare_url',
-                 '/{repo_name:.*?}/compare/{org_ref_type}@{org_ref}...{other_ref_type}@{other_ref}',
+                 '/{repo_name:.*?}/compare/{org_ref_type}@{org_ref:.*?}...{other_ref_type}@{other_ref:.*?}',
                  controller='compare', action='index',
                  conditions=dict(function=check_repo),
                  requirements=dict(