]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5608 Impossible to backup profile when the key contains "+" characters
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 6 Oct 2014 15:32:35 +0000 (17:32 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 6 Oct 2014 15:32:35 +0000 (17:32 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb

index 536e6eb445ee60510b4beea3026a2c4bd2e13f2e..715b119eb9a2108a38a1ec073f7e1cd38d3dfdb9 100644 (file)
@@ -90,9 +90,9 @@
         </td>
 
         <td align="right" nowrap>
-          <form method="post" action="<%= ApplicationController.root_context -%>/profiles/backup" id="backup-<%= profile.key() -%>-form">
+          <form method="post" action="<%= ApplicationController.root_context -%>/profiles/backup" id="backup-<%= profile.key().parameterize -%>-form">
             <input type="hidden" name="key" value="<%= profile.key() -%>"/>
-            <a href="#" class="link-action" name="button_backup" id="backup_<%= u profile.key() -%>" onclick="$j('#backup-<%= profile.key() -%>-form').submit();return false;"><%= message('backup_verb') -%></a>
+            <a href="#" class="link-action" name="button_backup" id="backup_<%= u profile.key() -%>" onclick="$j('#backup-<%= profile.key().parameterize -%>-form').submit();return false;"><%= message('backup_verb') -%></a>
           </form>
         </td>
         <% if profiles_administrator? %>