Skip to content
Snippets Groups Projects
Commit 5c5bf4e5 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

[Fix] tableAjaxData : lorsque la taille du tableau est indéfinie, on retourne 10000 éléments max.

parent 7c99d2dc
Branches
Tags
No related merge requests found
Pipeline #36117 passed
CHANGELOG
=========
6.3.2 (17/02/2025)
------------------
- [Fix] tableAjaxData : lorsque la taille du tableau est indéfinie, on retourne 10000 éléments max.
6.3.1 (22/01/2025)
------------------
......
......@@ -15,6 +15,10 @@ class Util
$orderCol = $post['orderCol'] ?? null;
$orderDir = ($post['orderDir'] ?? 'asc') == 'asc' ? 'asc' : 'desc';
if (!is_int($size)){
$size = 10000;
}
if ($orderCol && (str_contains($orderCol, '"') || str_contains($orderCol, "'"))){
$orderCol = null; // protection contre les injections
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment