aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/libs/application.js2
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_footer.html.erb8
2 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/libs/application.js b/server/sonar-web/src/main/js/libs/application.js
index 95e2b9685d5..c0202aa1bee 100644
--- a/server/sonar-web/src/main/js/libs/application.js
+++ b/server/sonar-web/src/main/js/libs/application.js
@@ -28,7 +28,7 @@
* @param {string} message
*/
window.showMessage = function (id, message) {
- jQuery('#' + id + 'msg').html(message);
+ jQuery('#' + id + 'msg').text(message);
jQuery('#' + id).removeClass('hidden');
jQuery('#messages-panel').removeClass('hidden');
};
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_footer.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_footer.html.erb
index cccfd95447c..71f1c60dedb 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_footer.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/_footer.html.erb
@@ -10,15 +10,15 @@
<% if cookies['flash'] %>
<script>
- var data = JSON.parse(unescape('<%= escape_javascript(cookies['flash']) -%>'));
+ var data = JSON.parse('<%= escape_javascript cookies['flash'] -%>');
if (data['notice']) {
- info(data['notice'].toString().replace(/\+/g, ' '));
+ info(data['notice']);
}
if (data['warning']) {
- warning(data['warning'].toString().replace(/\+/g, ' '));
+ warning(data['warning']);
}
if (data['error']) {
- error(data['error'].toString().replace(/\+/g, ' '));
+ error(data['error']);
}
</script>
<% end %>