From 71f5720b8457a3d334a65c19133959a4aeb3c632 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Mon, 18 Dec 2006 10:16:34 +0000
Subject: [PATCH] =?UTF-8?q?Ajout=20d'apostrophes=20ou=20de=20guillemets=20?=
 =?UTF-8?q?aux=20attributs=20qui=20en=20manquaient.=20Ce=20d=C3=A9pot=20r?=
 =?UTF-8?q?=C3=A9sulte=20de=205=20applications=20du=20script=20Shell=20ci-?=
 =?UTF-8?q?dessous=20et=20evacuation=20des=20fichiers=20o=C3=B9=20=C3=A7a?=
 =?UTF-8?q?=20ne=20portait=20que=20sur=20du=20code=20en=20commentaire.=20L?=
 =?UTF-8?q?es=202=20Regexp=20ne=20sont=20pas=20exhaustives,=20d'o=C3=B9=20?=
 =?UTF-8?q?le=20besoin=20de=20r=C3=A9p=C3=A9tition,=20et=20il=20reste=20en?=
 =?UTF-8?q?core=20le=20cas=20des=20balises=20en=20d=C3=A9but=20de=20ligne?=
 =?UTF-8?q?=20dont=20on=20ignore=20si=20elles=20sont=20encadr=C3=A9es=20pa?=
 =?UTF-8?q?r=20'=20ou=20".?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

{{{
for i in $(grep -l  "<[a-z][^>&(]*[a-z]=[^\"'\\$]" [ei]*/*.php|grep -v vieilles_defs)
do
    sed "s,^\(.[^']*<[a-z][^>&(\\]*[a-z]=\)\([^\"'\\$ >]*\)\([ >]\),\1'\2'\3,g" $i | \
    sed 's,^\(.[^"]*<[a-z][^>&(\\]*[a-z]=\)\([a-z0-9%]*\)\([ >]\),\1\"\2\"\3,g' \
    > z.php;
    diff z.php $i  > d
    if [ -s d ]
    then
    echo $i $(cat d| wc -l)
    php z.php
    mv z.php $i
    fi
done
}}}
---
 ecrire/exec/accueil.php                  |  6 +-
 ecrire/exec/admin_plugin.php             |  2 +-
 ecrire/exec/aide_index.php               |  2 +-
 ecrire/exec/articles_forum.php           |  4 +-
 ecrire/exec/breves_voir.php              |  2 +-
 ecrire/exec/config_contenu.php           | 20 +++---
 ecrire/exec/config_multilang.php         |  2 +-
 ecrire/exec/install.php                  |  2 +-
 ecrire/exec/rubriques_edit.php           |  4 +-
 ecrire/exec/sites_edit.php               |  6 +-
 ecrire/exec/statistiques_lang.php        |  4 +-
 ecrire/exec/statistiques_repartition.php |  6 +-
 ecrire/exec/statistiques_visites.php     | 92 ++++++++++++------------
 ecrire/inc/editer_article.php            |  8 +--
 14 files changed, 80 insertions(+), 80 deletions(-)

diff --git a/ecrire/exec/accueil.php b/ecrire/exec/accueil.php
index 7161da3933..4ab64f1e90 100644
--- a/ecrire/exec/accueil.php
+++ b/ecrire/exec/accueil.php
@@ -199,12 +199,12 @@ if (/* $connect_statut == "0minirezo" AND */ $spip_display != 4) {
 	if (!$_COOKIE['spip_admin']) {
 		$cookie = rawurlencode("@$connect_login");
 		$gadget .= "<div>&nbsp;</div>".
-			"<table width=95%><tr>".
-			"<td width=100%>".
+			"<table width='95%'><tr>".
+			"<td width='100%'>".
 			_T('info_activer_cookie').
 			aide ("cookie").
 			"</td>".
-			"<td width=10>".
+			"<td width='10'>".
 			http_img_pack("rien.gif", ' ', "width='10'") .
 			"</td>".
 			"<td width='250'>".
diff --git a/ecrire/exec/admin_plugin.php b/ecrire/exec/admin_plugin.php
index efcce3d68e..a0e5b129af 100644
--- a/ecrire/exec/admin_plugin.php
+++ b/ecrire/exec/admin_plugin.php
@@ -137,7 +137,7 @@ EOF;
 	echo "<font face='Verdana,Arial,Sans,sans-serif' size='3' color='#ffffff'>";
 	echo _T('plugins_liste')."</font></b></td></tr>";
 
-	echo "<tr><td class='serif' colspan=4>";
+	echo "<tr><td class='serif' colspan='4'>";
 	echo _T('texte_presente_plugin');
 
 	echo generer_url_post_ecrire("admin_plugin");
diff --git a/ecrire/exec/aide_index.php b/ecrire/exec/aide_index.php
index 3615551558..edf7bda8d8 100644
--- a/ecrire/exec/aide_index.php
+++ b/ecrire/exec/aide_index.php
@@ -183,7 +183,7 @@ function help_body($aide, $html, $lang_aide='') {
 	echo " lang='$lang_aide'>";
 
 	if ($aide == 'spip') {
-		echo '<table border=0 width=100% height=60%>
+		echo '<table border="0" width="100%" height="60%">
 <tr width=100% height=60%>
 <td width=100% height=60% align="center" valign="middle">
 <center>
diff --git a/ecrire/exec/articles_forum.php b/ecrire/exec/articles_forum.php
index 9f45000a6a..10c0d042a8 100644
--- a/ecrire/exec/articles_forum.php
+++ b/ecrire/exec/articles_forum.php
@@ -80,7 +80,7 @@ function articles_forum_cadres($id_rubrique, $id_article, $titre, $script, $args
 
 	debut_boite_info();
 
-	echo "<p align=left>",
+	echo "<p align='left'>",
 	  "<font FACE='Verdana,Arial,Sans,sans-serif' SIZE='2'>",
 	  _T('info_gauche_suivi_forum'),
 	  aide ("suiviforum"),
@@ -99,7 +99,7 @@ function articles_forum_cadres($id_rubrique, $id_article, $titre, $script, $args
 	echo pipeline('affiche_droite',array('args'=>array('exec'=>'articles_forum','id_article'=>$id_article),'data'=>''));
 	debut_droite();
 
-	echo "\n<table cellpadding=0 cellspacing=0 border=0 width='100%'>";
+	echo "\n<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
 	echo "<tr width='100%'>";
 	echo "<td>";
 	icone(_T('icone_retour'),
diff --git a/ecrire/exec/breves_voir.php b/ecrire/exec/breves_voir.php
index 4048139af3..b62f3c327b 100644
--- a/ecrire/exec/breves_voir.php
+++ b/ecrire/exec/breves_voir.php
@@ -190,7 +190,7 @@ function afficher_breves_voir($id_breve, $cherche_mot, $select_groupe)
 	echo propre($texte_case);
 
 	if ($les_notes) {
-		echo "<hr width='70%' height=1 align='left'><font size=2>$les_notes</font>\n";
+		echo "<hr width='70%' height='1' align='left'><font size=2>$les_notes</font>\n";
 	}
 
 	// afficher les extra
diff --git a/ecrire/exec/config_contenu.php b/ecrire/exec/config_contenu.php
index f52c69545d..ed3c7183e9 100644
--- a/ecrire/exec/config_contenu.php
+++ b/ecrire/exec/config_contenu.php
@@ -63,7 +63,7 @@ debut_cadre_trait_couleur("forum-interne-24.gif", false, "", _T('info_mode_fonct
 
 $forums_publics=$GLOBALS['meta']["forums_publics"];
 
-echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' align='$spip_lang_left' class='verdana2'>";
 
 
@@ -144,7 +144,7 @@ if ($options == "avancees") {
 	debut_cadre_trait_couleur("redacteurs-24.gif", false, "", _T('info_inscription_automatique'));
 
 	$accepter_inscriptions=$GLOBALS['meta']["accepter_inscriptions"];
-	echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+	echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 
 	echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' class='verdana2'>";
 	echo _T('info_question_inscription_nouveaux_redacteurs')."</i></blockquote>";
@@ -169,7 +169,7 @@ if ($options == "avancees") {
 
 	debut_cadre_trait_couleur("redacteurs-24.gif", false, "", _T('info_visiteurs'));
 		$accepter_visiteurs = $GLOBALS['meta']['accepter_visiteurs'];
-		echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+		echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 		echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' class='verdana2'>";
 
 		if ($n = ($forums_publics<>'abo')) {
@@ -205,13 +205,13 @@ if ($options == "avancees") {
 	$prevenir_auteurs=$GLOBALS['meta']["prevenir_auteurs"];
 
 
-	echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+	echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 	echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' class='verdana2'>";
 	echo "<blockquote><i>"._T('info_hebergeur_desactiver_envoi_email')."</i></blockquote>";
 	echo "</td></tr></table>";
 
 	debut_cadre_relief("", false, "", _T('info_envoi_forum'));
-	echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+	echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 	echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' class='verdana2'>";
 	echo _T('info_option_email');
 	echo "</td></tr>";
@@ -233,14 +233,14 @@ if ($options == "avancees") {
 
 	echo "<p />";
 	debut_cadre_relief("", false, "", _T('info_suivi_activite'));
-	echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+	echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 
 	echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' class='verdana2'>";
 	echo _T('info_facilite_suivi_activite')."</font>";
 	echo "</td></tr></table>";
 
 
-	echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+	echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 	echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' align='$spip_lang_left' class='verdana2'>";
 
 		echo bouton_radio("suivi_edito", "oui", _T('bouton_radio_envoi_annonces_adresse'), $suivi_edito == "oui", "changeVisible(this.checked, 'config-edito', 'block', 'none');");
@@ -276,7 +276,7 @@ if ($options == "avancees") {
 
 	echo "<p />";
 	debut_cadre_relief("", false, "", _T('info_annonce_nouveautes'));
-	echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+	echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 
 	echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' class='verdana2'>";
 	echo _T('info_non_envoi_annonce_dernieres_nouveautes');
@@ -312,7 +312,7 @@ if ($options == "avancees") {
 		$email_envoi = entites_html($GLOBALS['meta']["email_envoi"]);
 		echo "<p />";
 		debut_cadre_relief("", false, "", _T('info_email_envoi'));
-		echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+		echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 		echo "<tr><td background='" . _DIR_IMG_PACK . "rien.gif' class='verdana2'>";
 		echo _T('info_email_envoi_txt');
 		echo " <input type='text' name='email_envoi' value=\"$email_envoi\" size='20' class='fondl'>";
@@ -321,7 +321,7 @@ if ($options == "avancees") {
 		fin_cadre_relief();
 	}
 
-	echo "<table border=0 cellspacing=1 cellpadding=3 width=\"100%\">";
+	echo "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
 	echo "<tr><td style='text-align:$spip_lang_right;'>";
 	echo "<input type='submit' name='Valider' value='"._T('bouton_valider')."' class='fondo'>";
 	echo "</td></tr>";
diff --git a/ecrire/exec/config_multilang.php b/ecrire/exec/config_multilang.php
index fe10c40714..752ffbc9d7 100644
--- a/ecrire/exec/config_multilang.php
+++ b/ecrire/exec/config_multilang.php
@@ -177,7 +177,7 @@ fin_cadre_couleur();
 		}
 
 		echo "</td></tr>";
-		echo "<tr><td style='text-align:$spip_lang_right;' colspan=2>";
+		echo "<tr><td style='text-align:$spip_lang_right;' colspan='2'>";
 		echo "<input type='submit' name='Valider' value='"._T('bouton_valider')."' class='fondo'>";
 		echo "</td></tr></table>";
 		
diff --git a/ecrire/exec/install.php b/ecrire/exec/install.php
index 6ba3717e94..5db168d035 100644
--- a/ecrire/exec/install.php
+++ b/ecrire/exec/install.php
@@ -71,7 +71,7 @@ function tester_compatibilite_hebergement() {
 		. "mbstring.func_overload=$a - <a href='http://se.php.net/mb_string'>mb_string</a>.<br /><small>";
 
 	if ($err) {
-			echo "<p><font face='Verdana,Arial,Sans,sans-serif' size=4><b>"._T('avis_attention').'</b> <p>'._T('install_echec_annonce')."</p></font>";
+			echo "<p><font face='Verdana,Arial,Sans,sans-serif' size='4'><b>"._T('avis_attention').'</b> <p>'._T('install_echec_annonce')."</p></font>";
 		while (list(,$e) = each ($err))
 			echo "<li>$e</li>\n";
 
diff --git a/ecrire/exec/rubriques_edit.php b/ecrire/exec/rubriques_edit.php
index b2454d7c0b..294f7878d9 100644
--- a/ecrire/exec/rubriques_edit.php
+++ b/ecrire/exec/rubriques_edit.php
@@ -98,7 +98,7 @@ function exec_rubriques_edit_dist()
 
 	debut_cadre_formulaire();
 
-	echo "\n<table cellpadding=0 cellspacing=0 border=0 width='100%'>";
+	echo "\n<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
 	echo "<tr width='100%'>";
 	echo "<td>";
 
@@ -151,7 +151,7 @@ function exec_rubriques_edit_dist()
 
 	$form .= "<b>"._T('info_texte_explicatif')."</b>"
 	. aide ("raccourcis")
-	. "<br /><textarea name='texte' rows='15' class='formo' cols='40' wrap=soft>"
+	. "<br /><textarea name='texte' rows='15' class='formo' cols='40' wrap='soft'>"
 	. entites_html($texte)
 	. "</textarea>\n";
 
diff --git a/ecrire/exec/sites_edit.php b/ecrire/exec/sites_edit.php
index b290d5eb30..841b67126e 100644
--- a/ecrire/exec/sites_edit.php
+++ b/ecrire/exec/sites_edit.php
@@ -58,7 +58,7 @@ echo pipeline('affiche_droite',array('args'=>array('exec'=>'sites_edit','id_synd
 debut_droite();
 debut_cadre_formulaire();
 
-echo "\n<table cellpadding=0 cellspacing=0 border=0 width='100%'>";
+echo "\n<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
 echo "<tr width='100%'>";
 
 if ($new != 'oui') {
@@ -137,7 +137,7 @@ $form .= "<input type='text' class='formo' name='url_site' value=\"$url_site\" s
 	$form .= fin_cadre_couleur(true);
 
 $form .= "<p /><b>"._T('entree_description_site')."</b><br />\n";
-$form .= "<textarea name='descriptif' rows='8' class='forml' cols='40' wrap=soft>";
+$form .= "<textarea name='descriptif' rows='8' class='forml' cols='40' wrap='soft'>";
 $form .= entites_html($descriptif);
 $form .= "</textarea>\n";
 
@@ -167,7 +167,7 @@ if ($activer_syndic != "non") {
 	$form .= aide("rubsyn");
 
 
-	$form .= "<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td width=50>&nbsp;</td><td>";
+	$form .= "<table cellpadding='0' cellspacing='0' border='0' width='100%'><tr><td width='50'>&nbsp;</td><td>";
 
 	if (strlen($url_syndic) < 8) $url_syndic = "http://";
 	$form .= _T('entree_adresse_fichier_syndication');
diff --git a/ecrire/exec/statistiques_lang.php b/ecrire/exec/statistiques_lang.php
index 4b83e4b37f..dde90b5215 100644
--- a/ecrire/exec/statistiques_lang.php
+++ b/ecrire/exec/statistiques_lang.php
@@ -96,7 +96,7 @@ $result = spip_query("SELECT SUM(".$critere.") AS total_visites FROM spip_articl
 				echo "<td width='100%' style='border-bottom: 1px solid #cccccc;'><span class='verdana2'$dir><div style='float: $spip_lang_right;'>$pourcent%</div>".traduire_nom_langue($lang)."</span></td>";
 				
 				echo "<td style='border-bottom: 1px solid #cccccc;'>";
-					echo "<table cellpadding=0 cellspacing=0 border=0 width='".($taille+5)."' height=8>";
+					echo "<table cellpadding='0' cellspacing='0' border='0' width='".($taille+5)."' height=8>";
 					echo "<tr><td style='align:$spip_lang_right; background-color: #eeeeee; border: 1px solid #999999; white-space: nowrap;'>";
 					if ($visites_abs > 0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' width='$visites_abs' height='8'>";
 					if ($visites>0) echo "<IMG src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_foncee;' width='$visites' height=8 border=0>";
@@ -110,7 +110,7 @@ $result = spip_query("SELECT SUM(".$critere.") AS total_visites FROM spip_articl
 		echo "</table>";
 
 
-//echo "<p><font face='Verdana,Arial,Sans,sans-serif' size=3>"._T('texte_signification')."</font>";
+//echo "<p><font face='Verdana,Arial,Sans,sans-serif' size='3'>"._T('texte_signification')."</font>";
 
 
 fin_cadre_enfonce();
diff --git a/ecrire/exec/statistiques_repartition.php b/ecrire/exec/statistiques_repartition.php
index e2f888935f..4f98b55b55 100644
--- a/ecrire/exec/statistiques_repartition.php
+++ b/ecrire/exec/statistiques_repartition.php
@@ -77,7 +77,7 @@ function enfants_aff($id_parent,$decalage, $critere, $gauche=0) {
 				else {
 					$couleur="white";
 				}
-				echo "<table cellpadding=2 cellspacing=0 border=0 width='100%'>";
+				echo "<table cellpadding='2' cellspacing='0' border='0' width='100%'>";
 				echo "\n<tr bgcolor='$couleur' background='" . _DIR_IMG_PACK . "rien.gif' width='100%'>";
 				echo "\n<td style='border-bottom: 1px solid #aaaaaa; padding-$spip_lang_left: ".($niveau*20+5)."px;'>";
 				if ($niveau==0 OR 1==1){
@@ -98,11 +98,11 @@ function enfants_aff($id_parent,$decalage, $critere, $gauche=0) {
 				echo "</td>\n<td align='right' width='".($taille+5)."' style='border-bottom: 1px solid #aaaaaa;'>";
 				
 				
-				echo "\n<table cellpadding=0 cellspacing=0 border=0 width=".($decalage+1+$gauche)." height=8>";
+				echo "\n<table cellpadding='0' cellspacing='0' border='0' width=".($decalage+1+$gauche)." height=8>";
 				echo "\n<tr>";
 				if ($gauche > 0) echo "<td width='".$gauche."'></td>";
 				echo "\n<td style='background-color: #eeeeee; border: 1px solid #999999; white-space: nowrap;'>";
-				if ($visites_abs > 0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' width='".$visites_abs."' height=8 border=0>";
+				if ($visites_abs > 0) echo "<img src='" . _DIR_IMG_PACK . "rien.gif' width='".$visites_abs."' height='8' border='0'>";
 				if ($largeur_rouge>0) echo "<IMG src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_foncee;' width=$largeur_rouge height=8 border=0>";
 				if ($largeur_vert>0) echo "<IMG src='" . _DIR_IMG_PACK . "rien.gif' style='background-color: $couleur_claire;' width=$largeur_vert height=8 border=0>";
 				
diff --git a/ecrire/exec/statistiques_visites.php b/ecrire/exec/statistiques_visites.php
index c78eaa77c5..f56170ef85 100644
--- a/ecrire/exec/statistiques_visites.php
+++ b/ecrire/exec/statistiques_visites.php
@@ -112,7 +112,7 @@ if ($origine) {
 
 	debut_gauche();
 	debut_boite_info();
-	echo "<p align=left style='font-family:Verdana,Arial,Sans,sans-serif; font-size:small;'>"._T('info_gauche_statistiques_referers')."</p>";
+	echo "<p align='left' style='font-family:Verdana,Arial,Sans,sans-serif; font-size:small;'>"._T('info_gauche_statistiques_referers')."</p>";
 	fin_boite_info();
 	
 	debut_droite();
@@ -411,9 +411,9 @@ if ($GLOBALS['accepte_svg']) {
 	}
 } else {
 	
-	echo "<table cellpadding=0 cellspacing=0 border=0><tr>",
+	echo "<table cellpadding='0' cellspacing='0' border='0'><tr>",
 	  "<td ".http_style_background("fond-stats.gif").">";
-	echo "<table cellpadding=0 cellspacing=0 border=0><tr>";
+	echo "<table cellpadding='0' cellspacing='0' border='0'><tr>";
 	
 	echo "<td bgcolor='black'>", http_img_rien(1,200), "</td>";
 	
@@ -554,33 +554,33 @@ if ($GLOBALS['accepte_svg']) {
 			  "<td ".http_style_background("fond-stats.gif")."  valign='bottom'>", http_img_rien(3, 1, 'background-color:black;'),"</td>";
 			echo "<td>", http_img_rien(5, 1),"</td>";
 			echo "<td valign='top'><div style='font-family:Verdana,Arial,Sans,sans-serif; font-size:small;'>";
-			echo "<table cellpadding=0 cellspacing=0 border=0>";
-			echo "<tr><td height=15 valign='top'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1><b>".round($maxgraph)."</b></font>";
+			echo "<table cellpadding='0' cellspacing='0' border='0'>";
+			echo "<tr><td height='15' valign='top'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1'><b>".round($maxgraph)."</b></font>";
 			echo "</td></tr>";
-			echo "<tr><td height=25 valign='middle'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1 color='#999999'>".round(7*($maxgraph/8))."</font>";
+			echo "<tr><td height='25' valign='middle'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(7*($maxgraph/8))."</font>";
 			echo "</td></tr>";
-			echo "<tr><td height=25 valign='middle'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1>".round(3*($maxgraph/4))."</font>";
+			echo "<tr><td height='25' valign='middle'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1'>".round(3*($maxgraph/4))."</font>";
 			echo "</td></tr>";
-			echo "<tr><td height=25 valign='middle'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1 color='#999999'>".round(5*($maxgraph/8))."</font>";
+			echo "<tr><td height='25' valign='middle'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(5*($maxgraph/8))."</font>";
 			echo "</td></tr>";
-			echo "<tr><td height=25 valign='middle'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1><b>".round($maxgraph/2)."</b></font>";
+			echo "<tr><td height='25' valign='middle'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1'><b>".round($maxgraph/2)."</b></font>";
 			echo "</td></tr>";
-			echo "<tr><td height=25 valign='middle'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1 color='#999999'>".round(3*($maxgraph/8))."</font>";
+			echo "<tr><td height='25' valign='middle'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(3*($maxgraph/8))."</font>";
 			echo "</td></tr>";
-			echo "<tr><td height=25 valign='middle'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1>".round($maxgraph/4)."</font>";
+			echo "<tr><td height='25' valign='middle'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1'>".round($maxgraph/4)."</font>";
 			echo "</td></tr>";
-			echo "<tr><td height=25 valign='middle'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1 color='#999999'>".round(1*($maxgraph/8))."</font>";
+			echo "<tr><td height='25' valign='middle'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(1*($maxgraph/8))."</font>";
 			echo "</td></tr>";
-			echo "<tr><td height=10 valign='bottom'>";		
-			echo "<font face='arial,helvetica,sans-serif' size=1><b>0</b></font>";
+			echo "<tr><td height='10' valign='bottom'>";		
+			echo "<font face='arial,helvetica,sans-serif' size='1'><b>0</b></font>";
 			echo "</td>";
 			
 			
@@ -614,8 +614,8 @@ if ($GLOBALS['accepte_svg']) {
 		// (desactive au profit de la moeynne "glissante")
 		# $moyenne =  round($total_absolu / ((date("U")-$date_premier)/(3600*24)));
 
-		echo "<font face='arial,helvetica,sans-serif' size=1>"._T('texte_statistiques_visites')."</font>";
-		echo "<br /><table cellpadding=0 cellspacing=0 border=0 width='100%'><tr style='width:100%;'>";
+		echo "<font face='arial,helvetica,sans-serif' size='1'>"._T('texte_statistiques_visites')."</font>";
+		echo "<br /><table cellpadding='0' cellspacing='0' border='0' width='100%'><tr style='width:100%;'>";
 		echo "<td valign='top' width='33%'><font face='Verdana,Arial,Sans,sans-serif'>";
 		echo _T('info_maximum')." ".$max;
 		echo "<br>"._T('info_moyenne')." ".round($moyenne);
@@ -638,7 +638,7 @@ if ($GLOBALS['accepte_svg']) {
 				echo "<br>".$classement[$id_article].$ch;
 			}
 		} else {
-			echo "<font size=1>";
+			echo "<font size='1'>";
 			echo "<br>"._T('info_popularite_2')." ";
 			echo ceil($GLOBALS['meta']['popularite_total']);
 			echo "</font>";
@@ -674,9 +674,9 @@ if ($GLOBALS['accepte_svg']) {
 			if ($largeur > 50) $largeur = 50;
 		}
 		
-		echo "<table cellpadding=0 cellspacing=0 border=0><tr>",
+		echo "<table cellpadding='0' cellspacing='0' border='0'><tr>",
 		  "<td ".http_style_background("fond-stats.gif").">";
-		echo "<table cellpadding=0 cellspacing=0 border=0><tr>";
+		echo "<table cellpadding='0' cellspacing='0' border='0'><tr>";
 		echo "<td bgcolor='black'>", http_img_rien(1, 200),"</td>";
 	
 		// Presentation graphique
@@ -752,33 +752,33 @@ if ($GLOBALS['accepte_svg']) {
 		  "<td ".http_style_background("fond-stats.gif")." valign='bottom'>", http_img_rien(3, 1, 'background-color:black;'),"</td>";
 		echo "<td>", http_img_rien(5, 1),"</td>";
 		echo "<td valign='top'><div style='font-family:Verdana,Arial,Sans,sans-serif; font-size:small;'>";
-		echo "<table cellpadding=0 cellspacing=0 border=0>";
-		echo "<tr><td height=15 valign='top'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1><b>".round($maxgraph)."</b></font>";
+		echo "<table cellpadding='0' cellspacing='0' border='0'>";
+		echo "<tr><td height='15' valign='top'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1'><b>".round($maxgraph)."</b></font>";
 		echo "</td></tr>";
-		echo "<tr><td height=25 valign='middle'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1 color='#999999'>".round(7*($maxgraph/8))."</font>";
+		echo "<tr><td height='25' valign='middle'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(7*($maxgraph/8))."</font>";
 		echo "</td></tr>";
-		echo "<tr><td height=25 valign='middle'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1>".round(3*($maxgraph/4))."</font>";
+		echo "<tr><td height='25' valign='middle'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1'>".round(3*($maxgraph/4))."</font>";
 		echo "</td></tr>";
-		echo "<tr><td height=25 valign='middle'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1 color='#999999'>".round(5*($maxgraph/8))."</font>";
+		echo "<tr><td height='25' valign='middle'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(5*($maxgraph/8))."</font>";
 		echo "</td></tr>";
-		echo "<tr><td height=25 valign='middle'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1><b>".round($maxgraph/2)."</b></font>";
+		echo "<tr><td height='25' valign='middle'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1'><b>".round($maxgraph/2)."</b></font>";
 		echo "</td></tr>";
-		echo "<tr><td height=25 valign='middle'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1 color='#999999'>".round(3*($maxgraph/8))."</font>";
+		echo "<tr><td height='25' valign='middle'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(3*($maxgraph/8))."</font>";
 		echo "</td></tr>";
-		echo "<tr><td height=25 valign='middle'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1>".round($maxgraph/4)."</font>";
+		echo "<tr><td height='25' valign='middle'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1'>".round($maxgraph/4)."</font>";
 		echo "</td></tr>";
-		echo "<tr><td height=25 valign='middle'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1 color='#999999'>".round(1*($maxgraph/8))."</font>";
+		echo "<tr><td height='25' valign='middle'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1' color='#999999'>".round(1*($maxgraph/8))."</font>";
 		echo "</td></tr>";
-		echo "<tr><td height=10 valign='bottom'>";		
-		echo "<font face='arial,helvetica,sans-serif' size=1><b>0</b></font>";
+		echo "<tr><td height='10' valign='bottom'>";		
+		echo "<font face='arial,helvetica,sans-serif' size='1'><b>0</b></font>";
 		echo "</td>";
 
 		echo "</tr></table>";
diff --git a/ecrire/inc/editer_article.php b/ecrire/inc/editer_article.php
index 6ef02c07b5..1c85f28c02 100644
--- a/ecrire/inc/editer_article.php
+++ b/ecrire/inc/editer_article.php
@@ -263,20 +263,20 @@ function editer_article_chapo($chapo, $config, $aider)
 		$virtuel = substr($chapo, 1);
 
 		return "<div style='border: 1px dashed #666666; background-color: #f0f0f0; padding: 5px;'>" .
-			"<table width=100% cellspacing=0 cellpadding=0 border=0>" .
+			"<table width='100%' cellspacing='0' cellpadding='0' border='0'>" .
 			"<tr><td valign='top'>" .
-			"<font face='Verdana,Arial,Sans,sans-serif' size=2>" .
+			"<font face='Verdana,Arial,Sans,sans-serif' size='2'>" .
 			"<b><label for='confirme-virtuel'>"._T('info_redirection')."&nbsp;:</label></b>" .
 			$aider ("artvirt") .
 			"</font>" .
 			"</td>" .
-			"<td width=10>&nbsp;</td>" .
+			"<td width='10'>&nbsp;</td>" .
 			"<td valign='top' width='50%'>" .
 			"<input type='text' name='virtuel' class='forml'
 		style='font-size:9px;' value=\"$virtuel\" size='40' />" .
 			"<input type='hidden' name='changer_virtuel' value='oui' />" .
 			"</td></tr></table>\n" .
-			"<font face='Verdana,Arial,Sans,sans-serif' size=2>" .
+			"<font face='Verdana,Arial,Sans,sans-serif' size='2'>" .
 			_T('texte_article_virtuel_reference') .
 			"</font>" .
 			"</div>\n";
-- 
GitLab