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
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
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)
------------------

+4 −0
Original line number Diff line number Diff line
@@ -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
        }