Fix select_db_table html
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 31 Aug 2007 21:40:05 +0000 (23:40 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 31 Aug 2007 21:40:05 +0000 (23:40 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
plugins/function.select_db_table.php

index edea562..eef9e1d 100644 (file)
@@ -49,7 +49,7 @@ function select_options($table,$valeur,$champ="text",$pad=false,
             $optgrp = $my_grp;
         }
         $html .= sprintf("<option value=\"%s\" %s>%s</option>\n",
-                         $my_id, ($valeur==$my_id?$sel:""), $my_text);
+                         $my_id, $valeur==$my_id ? $sel : "", pl_entities($my_text));
     }
     if (!is_null($optgrp)) {
         $html .= '</optgroup>';