# HG changeset patch # User Marcin Kuzminski # Date 2013-05-06 21:39:35 # Node ID 13b7e04af99b96bc88ab818fc6e744ddf58d23f2 # Parent 647fb653048ea0bd898acdfcea25cd799ba55606 changelog: encode branch names with ref: https://secure.rhodecode.org/rhodecode-fork-kiilerix/changeset/e175420889dc0d2f530bde8e094cc314e129d1a6 diff --git a/rhodecode/templates/changelog/changelog.html b/rhodecode/templates/changelog/changelog.html --- a/rhodecode/templates/changelog/changelog.html +++ b/rhodecode/templates/changelog/changelog.html @@ -244,7 +244,7 @@ var selected_branch = e.currentTarget.options[e.currentTarget.selectedIndex].value; var url_main = "${h.url('changelog_home',repo_name=c.repo_name)}"; var url = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}"; - var url = url.replace('__BRANCH__',selected_branch); + var url = url.replace('__BRANCH__', encodeURIComponent(selected_branch)); if(selected_branch != ''){ window.location = url; }else{