Skip to content
Extraits de code Groupes Projets
Valider 373bc303 rédigé par b_b's avatar b_b
Parcourir les fichiers

fix: balise `<meta charset="#CHARSET">` réduite et valide HTML5

Ref: #5667
parent 8524d49e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -104,7 +104,7 @@ function redirige_par_entete($url, $equiv = '', $status = 302) { ...@@ -104,7 +104,7 @@ function redirige_par_entete($url, $equiv = '', $status = 302) {
<head>', <head>',
$equiv, ' $equiv, '
<title>HTTP ' . $status . '</title> <title>HTTP ' . $status . '</title>
' . ((isset($GLOBALS['meta']['charset'])) ? '<meta http-equiv="Content-Type" content="text/html;charset=' . $GLOBALS['meta']['charset'] . '">' : '') . ' ' . ((isset($GLOBALS['meta']['charset'])) ? '<meta charset="' . $GLOBALS['meta']['charset'] . '">' : '') . '
</head> </head>
<body> <body>
<h1>HTTP ' . $status . '</h1> <h1>HTTP ' . $status . '</h1>
......
...@@ -129,7 +129,7 @@ function balise_DESCRIPTIF_SITE_SPIP_dist($p) { ...@@ -129,7 +129,7 @@ function balise_DESCRIPTIF_SITE_SPIP_dist($p) {
* @link https://www.spip.net/4331 * @link https://www.spip.net/4331
* @example * @example
* ``` * ```
* <meta http-equiv="Content-Type" content="text/html; charset=#CHARSET" /> * <meta charset="#CHARSET" />
* ``` * ```
* *
* @param Champ $p * @param Champ $p
......
...@@ -858,9 +858,7 @@ function debusquer_entete($titre, $corps) { ...@@ -858,9 +858,7 @@ function debusquer_entete($titre, $corps) {
_T('admin_debug') . ' ' . spip_htmlspecialchars($titre) . ' (' . _T('admin_debug') . ' ' . spip_htmlspecialchars($titre) . ' (' .
supprimer_tags(corriger_typo($GLOBALS['meta']['nom_site']))) . supprimer_tags(corriger_typo($GLOBALS['meta']['nom_site']))) .
")</title>\n" . ")</title>\n" .
"<meta http-equiv='Content-Type' content='text/html" . ($c = $GLOBALS['meta']['charset']) ? "<meta charset='$c' />\n" : '' .
(($c = $GLOBALS['meta']['charset']) ? "; charset=$c" : '') .
"' />\n" .
http_script('', 'jquery.js') http_script('', 'jquery.js')
. "<link rel='stylesheet' href='" . url_absolue(find_in_path('spip_admin.css')) . "<link rel='stylesheet' href='" . url_absolue(find_in_path('spip_admin.css'))
. "' type='text/css' />" . . "' type='text/css' />" .
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" lang="#LANG" dir="#LANG_DIR"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" lang="#LANG" dir="#LANG_DIR">
<head> <head>
<title>[(#NOM_SITE_SPIP|textebrut)]</title> <title>[(#NOM_SITE_SPIP|textebrut)]</title>
<meta http-equiv="Content-Type" content="text/html; charset=#CHARSET" /> <meta charset="#CHARSET" />
<meta name="robots" content="none" /> <meta name="robots" content="none" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
#INSERT_HEAD_CSS #INSERT_HEAD_CSS
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" lang="#LANG" dir="#LANG_DIR"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="#LANG" lang="#LANG" dir="#LANG_DIR">
<head> <head>
<title><:pass_mot_oublie:> - [(#NOM_SITE_SPIP|textebrut)]</title> <title><:pass_mot_oublie:> - [(#NOM_SITE_SPIP|textebrut)]</title>
<meta http-equiv="Content-Type" content="text/html; charset=#CHARSET" /> <meta charset="#CHARSET" />
<meta name="robots" content="none" /> <meta name="robots" content="none" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
#INSERT_HEAD_CSS #INSERT_HEAD_CSS
......
...@@ -2,9 +2,8 @@ ...@@ -2,9 +2,8 @@
Appel au script php en attendant de reecrire le head ici Appel au script php en attendant de reecrire le head ici
] ]
[<title>(#ENV{titre,''})</title> [<title>(#ENV{titre,''})</title>
] ][<meta charset=(#CONFIG{charset})" />
<meta http-equiv="Content-Type" content="text/html[; charset=(#CONFIG{charset})]" /> ]<script>
<script>
var url_menu_rubrique="[(#VAL{menu_rubriques}|generer_url_action{[date=(#CONFIG{date_calcul_rubriques})],1})]"; var url_menu_rubrique="[(#VAL{menu_rubriques}|generer_url_action{[date=(#CONFIG{date_calcul_rubriques})],1})]";
(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement); (function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement);
[(#EVAL{$_COOKIE}|table_valeur{spip_accepte_ajax}|>={1}|non) [(#EVAL{$_COOKIE}|table_valeur{spip_accepte_ajax}|>={1}|non)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter