Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Reflected XSS vulnerability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Kalita committed Feb 27, 2014
1 parent 50e7749 commit c7ad2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/flash.js.erb
Expand Up @@ -15,7 +15,7 @@ Flash.writeDataTo = function(name, element, callback) {
var message = "";
if (Flash.data[name]) {
message = Flash.data[name].toString().replace(/\+/g, ' ');
element.html(message);
element.text(message);
if (callback && typeof(callback) === 'function') {
callback(element);
} else {
Expand Down

0 comments on commit c7ad2ce

Please sign in to comment.