Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix xss for tasks index
  • Loading branch information
Bottelet committed Jun 25, 2021
1 parent fe842ea commit 002dc75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/TasksController.php
Expand Up @@ -82,7 +82,7 @@ public function anyData()
})
->addColumn('view', function ($tasks) {
return '<a href="' . route("tasks.show", $tasks->external_id) . '" class="btn btn-link">' . __('View') .'</a>'
. '<a data-toggle="modal" data-id="'. route('tasks.destroy',$tasks->external_id) . '" data-title="'. $tasks->title . '" data-target="#deletion" class="btn btn-link">' . __('Delete') .'</a>'
. '<a data-toggle="modal" data-id="'. route('tasks.destroy',$tasks->external_id) . '" data-target="#deletion" class="btn btn-link">' . __('Delete') .'</a>'
;
})
->rawColumns(['titlelink','view', 'status_id'])
Expand Down

0 comments on commit 002dc75

Please sign in to comment.