X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Ffiltres.php;h=220645ff3c037207a7a52ee0b4042d19c331e374;hp=74846d1a9faeea97d525c7cec2baa43cf551194d;hb=1cd23582fed8f669ccf8246eb120237731da3db0;hpb=3b34d0137e672387909494967123983d45db1ffd diff --git a/www/ecrire/inc/filtres.php b/www/ecrire/inc/filtres.php index 74846d1a..220645ff 100644 --- a/www/ecrire/inc/filtres.php +++ b/www/ecrire/inc/filtres.php @@ -431,6 +431,8 @@ function texte_backend($texte) { $texte = preg_replace('/\s{2,}/S'.$u, " ", $texte); // ne pas echapper les sinqle quotes car certains outils de syndication gerent mal $texte = entites_html($texte, false, false); + // mais bien echapper les double quotes ! + $texte = str_replace('"','"',$texte); // verifier le charset $texte = charset2unicode($texte); @@ -1174,7 +1176,7 @@ function affdate_debut_fin($date_debut, $date_fin, $horaire = 'oui', $forme=''){ } }else{ if($dtabbr && $dtstart) - $s = $dtstart.spip_ucfirst($s).$dabbr; + $s = $dtstart.spip_ucfirst($s).$dtabbr; else $s = spip_ucfirst($s); } @@ -1543,7 +1545,10 @@ function extraire_attribut($balise, $attribut, $complet = false) { } else { $r[4] = trim($r[2]); } - $att = filtrer_entites(str_replace("'", "'", $r[4])); + $att = $r[4]; + if (strpos($att,"&#")!==false) + $att = str_replace(array("'","'",""","""), array("'","'",'"','"'), $att); + $att = filtrer_entites($att); } else $att = NULL;