Skip to content

Commit

Permalink
BF:Persistent XSS fix #369
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin BALET committed Jun 6, 2022
1 parent 741b621 commit 3d01cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/Leaves.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function createComment($id, $source = "leaves/leaves"){
$newComment = new stdClass;
$newComment->type = "comment";
$newComment->author = $this->session->userdata('id');
$newComment->value = $this->input->post('comment');
$newComment->value = $this->input->post('comment', TRUE);
$newComment->date = date("Y-n-j");
if ($oldComment != NULL){
array_push($oldComment->comments, $newComment);
Expand Down

0 comments on commit 3d01cef

Please sign in to comment.