Browse Source

Merge pull request #66 from sijad/form-xss

Fix self xss in contact us form
master
David Miller 9 years ago committed by GitHub
parent
commit
6b3f35d978
  1. 2
      js/contact_me.js

2
js/contact_me.js

@ -47,7 +47,7 @@ $(function() { @@ -47,7 +47,7 @@ $(function() {
$('#success').html("<div class='alert alert-danger'>");
$('#success > .alert-danger').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
.append("</button>");
$('#success > .alert-danger').append("<strong>Sorry " + firstName + ", it seems that my mail server is not responding. Please try again later!");
$('#success > .alert-danger').append($("<strong>").text("Sorry " + firstName + ", it seems that my mail server is not responding. Please try again later!"));
$('#success > .alert-danger').append('</div>');
//clear all fields
$('#contactForm').trigger("reset");

Loading…
Cancel
Save