From 0d233641de67563a42ad58925dd6da7483062637 Mon Sep 17 00:00:00 2001 From: Sajjad Hashemian Date: Tue, 2 Aug 2016 14:10:06 +0430 Subject: [PATCH] Fix xss issue --- js/contact_me.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/contact_me.js b/js/contact_me.js index c3d8ecc..17a11f0 100644 --- a/js/contact_me.js +++ b/js/contact_me.js @@ -47,7 +47,7 @@ $(function() { $('#success').html("
"); $('#success > .alert-danger').html(""); - $('#success > .alert-danger').append("Sorry " + firstName + ", it seems that my mail server is not responding. Please try again later!"); + $('#success > .alert-danger').append($("").text("Sorry " + firstName + ", it seems that my mail server is not responding. Please try again later!")); $('#success > .alert-danger').append('
'); //clear all fields $('#contactForm').trigger("reset");