From f881df9b852619a914fd83455812376fb748a00b Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Tue, 8 Nov 2005 23:38:33 +0000 Subject: [PATCH] passer safehtml sur les boucles FORUMS et non pas sur la table (spip_)forum --- inc-balises.php3 | 3 ++- inc-compilo-api.php3 | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/inc-balises.php3 b/inc-balises.php3 index 49a3843b8c..5347708fa5 100644 --- a/inc-balises.php3 +++ b/inc-balises.php3 @@ -37,7 +37,8 @@ function champs_traitements ($p) { else { if ($p->nom_boucle) $type = $p->boucles[$p->nom_boucle]->type_requete; - else $type = $p->type_requete; + else + $type = $p->type_requete; $ps = $table_des_traitements[$p->nom_champ][$type]; if (!$ps) $ps = $table_des_traitements[$p->nom_champ][0]; diff --git a/inc-compilo-api.php3 b/inc-compilo-api.php3 index 2cc873cf58..b9b44faf19 100644 --- a/inc-compilo-api.php3 +++ b/inc-compilo-api.php3 @@ -299,10 +299,10 @@ foreach(array('TITRE','DESCRIPTIF','SOURCE') as $balise) // Forums & petitions : ajouter safehtml aux filtres existants foreach(array('TITRE','TEXTE','AUTEUR','EMAIL_AUTEUR','NOM_SITE') as $balise) - if (!isset($table_des_traitements[$balise]['forum'])) - $table_des_traitements[$balise]['forum'] = 'safehtml(%s)'; + if (!isset($table_des_traitements[$balise]['forums'])) + $table_des_traitements[$balise]['forums'] = 'safehtml(%s)'; foreach(array('NOM','NOM_SITE','MESSAGE','AD_EMAIL') as $balise) - if (!isset($table_des_traitements[$balise]['forum'])) + if (!isset($table_des_traitements[$balise]['signatures'])) $table_des_traitements[$balise]['signatures'] = 'safehtml(%s)'; ?> -- GitLab