replace FormatString by sql_string

This commit is contained in:
Dany De Bontridder 2011-10-29 14:46:13 +00:00
parent 5ce3691f12
commit 733883f2eb
38 changed files with 94 additions and 99 deletions

View file

@ -368,9 +368,9 @@ function ShowActionList($cn,$p_base)
if ( isset($_REQUEST['query']) )
{
// if a query is request build the sql stmt
$query="and (ag_title ~* '".FormatString($_REQUEST['query'])."' ".
"or ag_ref ='".trim(FormatString($_REQUEST['query'])).
"' or ag_comment ~* '".trim(FormatString($_REQUEST['query']))."'".
$query="and (ag_title ~* '".sql_string($_REQUEST['query'])."' ".
"or ag_ref ='".trim(sql_string($_REQUEST['query'])).
"' or ag_comment ~* '".trim(sql_string($_REQUEST['query']))."'".
")";
}