forked from Wavyzz/dolibarr
Security: A lot of security fixes
This commit is contained in:
@@ -666,8 +666,8 @@ class DoliDb
|
||||
if (! $return) $return.=' ORDER BY ';
|
||||
else $return.=',';
|
||||
|
||||
$return.=$val;
|
||||
if ($sortorder) $return.=' '.$sortorder;
|
||||
$return.=preg_replace('/[^0-9a-z_\.]/i','',$val);
|
||||
if ($sortorder) $return.=' '.preg_replace('/[^0-9a-z]/i','',$sortorder);
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user