Commits

Marcin Kuzminski  committed 0ebdd15

fix routing regex for compare branches with / and other special chars

  • Participants
  • Parent commits 58bb350

Comments (0)

Files changed (1)

File rhodecode/config/routing.py

                  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(