forked from Wavyzz/dolibarr
FIX SQL injection
This commit is contained in:
@@ -6199,6 +6199,8 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
|
||||
{
|
||||
global $db,$langs;
|
||||
|
||||
$value=trim($value);
|
||||
|
||||
if ($mode == 0)
|
||||
{
|
||||
$value=preg_replace('/\*/','%',$value); // Replace * with %
|
||||
|
||||
Reference in New Issue
Block a user