Skip to content

Commit

Permalink
Fix: HTML injection
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-konanykhin committed Jan 18, 2017
1 parent 76980a8 commit 4dcce60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/time_entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ $(document).ready(function () {
var start_date = row.data("start_date");
var duration = row.data("duration");
var description = row.data("description");
$("#work_entry_start_date").html(start_date);
$("#work_entry_duration").html(duration);
$("#work_entry_description").html(description);
$("#work_entry_start_date").text(start_date);
$("#work_entry_duration").text(duration);
$("#work_entry_description").text(description);
$("#confirmation_delete").data("entry_id", entry_id);
});

Expand Down

0 comments on commit 4dcce60

Please sign in to comment.