# HG changeset patch # User Marcin Kuzminski # Date 2012-10-16 21:34:34 # Node ID 0ebdd15de1d89632a34edcdddc52bc7e9e160fdb # Parent 58bb350bfef8dffe21379e110bb5497130319a7c fix routing regex for compare branches with / and other special chars diff --git a/rhodecode/config/routing.py b/rhodecode/config/routing.py --- a/rhodecode/config/routing.py +++ b/rhodecode/config/routing.py @@ -435,7 +435,7 @@ def make_map(config): 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(