From 2412669ef60b36711f928c525c2390c19ff4e504 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 19 Sep 2010 01:18:36 +0000 Subject: [PATCH] Fix prob with special char --- include/class_database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_database.php b/include/class_database.php index c9a04d3cf..1e76ace35 100644 --- a/include/class_database.php +++ b/include/class_database.php @@ -612,7 +612,7 @@ class Database { $row=pg_fetch_row($a); $r[$i]['value']=$row[0]; - $r[$i]['label']=$row[1]; + $r[$i]['label']=h($row[1]); } // add a blank item ? if ( $p_null == 1 ) @@ -620,7 +620,7 @@ class Database for ($i=$max;$i!=0;$i--) { $r[$i]['value']= $r[$i-1]['value']; - $r[$i]['label']= $r[$i-1]['label']; + $r[$i]['label']= h($r[$i-1]['label']); } $r[0]['value']=-1; $r[0]['label']=" ";