aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-06 17:32:35 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-06 17:32:35 +0200
commit5e493e0cacaed07f7413c8a68f1e5b26e8e72d7a (patch)
tree6ec41f6b857676d9235c642c211ed24082f282e5 /server
parenta7759525b2fa400ec5b89b63a8786ea912b9e8a7 (diff)
downloadsonarqube-5e493e0cacaed07f7413c8a68f1e5b26e8e72d7a.tar.gz
sonarqube-5e493e0cacaed07f7413c8a68f1e5b26e8e72d7a.zip
SONAR-5608 Impossible to backup profile when the key contains "+" characters
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb
index 536e6eb445e..715b119eb9a 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb
@@ -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? %>