recherche.php3 1.16 1.17

Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv17170/ecrire

Modified Files:
  recherche.php3
Log Message:
bug recherche espace privé (<math>) (Perline)

Index: recherche.php3

RCS file: /home/spip-cvs/spip/ecrire/recherche.php3,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- recherche.php3 26 May 2004 15:25:18 -0000 1.16
+++ recherche.php3 21 Jul 2004 00:04:11 -0000 1.17
@@ -4,11 +4,13 @@
include_ecrire ("inc_mots.php3");
include_ecrire ("inc_sites.php3");

+$recherche = addslashes(entites_html($recherche));
+
+
debut_page(_T('titre_page_recherche', array('recherche' => $recherche)));

debut_gauche();

- global $recherche;
         $recherche_aff = _T('info_rechercher');
         $onfocus = "onfocus=this.value='';";
       echo "<form method='get' style='margin: 0px;' action='recherche.php3'>";
@@ -22,10 +24,8 @@
if (strlen($recherche) > 0) {

   echo "<FONT FACE='Verdana,Arial,Sans,sans-serif'><B>"._T('info_resultat_recherche')."</B><BR>";
- echo "<FONT SIZE=5 COLOR='$couleur_foncee'><B>".typo($recherche)."</B></FONT><p>";
+ echo "<FONT SIZE=5 COLOR='$couleur_foncee'><B>$recherche</B></FONT><p>";

- $recherche = addslashes($recherche);
-
   $query_articles = "SELECT * FROM spip_articles WHERE";
   $query_breves = "SELECT * FROM spip_breves WHERE ";
   $query_rubriques = "SELECT * FROM spip_rubriques WHERE ";