2
0
forked from Wavyzz/dolibarr

Sanitize sortfield

This commit is contained in:
Laurent Destailleur
2020-09-18 17:13:01 +02:00
parent d75e1e5771
commit 2d38644ae1
92 changed files with 109 additions and 90 deletions

View File

@@ -39,7 +39,7 @@ $compression = GETPOST('compression');
$file = dol_sanitizeFileName($file);
$file = preg_replace('/(\.zip|\.tar|\.tgz|\.gz|\.tar\.gz|\.bz2)$/i', '', $file);
$sortfield = GETPOST('sortfield', 'alpha');
$sortfield = GETPOST('sortfield', 'aZ09comma');
$sortorder = GETPOST('sortorder', 'aZ09comma');
$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int');
if (!$sortorder) $sortorder = "DESC";