Fix problem with invalid unicode sequence
This commit is contained in:
parent
90cd5bae68
commit
cfdff5a390
2 changed files with 6 additions and 5 deletions
|
|
@ -146,13 +146,13 @@ if (sizeof($sql) != 0 )
|
|||
|
||||
$sql_name=$cn->execute('get_name',array($sql[$i]['f_id'],23));
|
||||
if (Database::num_row($sql_name) == 1) $quick_code=Database::fetch_result($sql_name,0,0);
|
||||
|
||||
$fid=htmlentities($_REQUEST['FID']);
|
||||
|
||||
/* Highlight the found pattern with bold format */
|
||||
$name=str_ireplace($_REQUEST['FID'],'<em>'.$_REQUEST['FID'].'</em>',h($name));
|
||||
$qcode=str_ireplace($_REQUEST['FID'],'<em>'.$_REQUEST['FID'].'</em>',h($quick_code));
|
||||
$desc=str_ireplace($_REQUEST['FID'],'<em>'.$_REQUEST['FID'].'</em>',h($desc));
|
||||
printf('<li id="%s">%s <span class="informal"> %s %s</span></li>',
|
||||
$name=str_ireplace($_REQUEST['FID'],'<em>'.$fid.'</em>',h($name));
|
||||
$qcode=str_ireplace($_REQUEST['FID'],'<em>'.$fid.'</em>',h($quick_code));
|
||||
$desc=str_ireplace($_REQUEST['FID'],'<em>'.$fid.'</em>',h($desc));
|
||||
printf('<li id="%s">%s <span class="informal">%s %s</span></li>',
|
||||
$quick_code,
|
||||
$quick_code,
|
||||
$name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue