We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f35485 commit b3ffc89Copy full SHA for b3ffc89
1 file changed
src/DataTableQuery.php
@@ -72,6 +72,10 @@ public function getDataResult()
72
73
foreach ($queryResult as $row)
74
{
75
+ //escaping all
76
+ foreach($row as $key => $val)
77
+ $row->$key = esc($val);
78
+
79
$data = [];
80
$columns = $this->columnDefs->getColumns();
81
@@ -98,7 +102,7 @@ public function getDataResult()
98
102
break;
99
103
100
104
default:
101
- $value = esc($row->{$column->alias}); // Escape all other data if not used in formatting types
105
+ $value = $row->{$column->alias};
106
107
}
108
0 commit comments