dépôts
/
lhc
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'v1'
[lhc/web/www.git]
/
www
/
ecrire
/
public
/
balises.php
diff --git
a/www/ecrire/public/balises.php
b/www/ecrire/public/balises.php
index
4c8247f
..
9d01d21
100644
(file)
--- a/
www/ecrire/public/balises.php
+++ b/
www/ecrire/public/balises.php
@@
-3,7
+3,7
@@
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-201
2
*
+ * Copyright (c) 2001-201
4
*
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
@@
-401,9
+401,9
@@
function balise_INTRODUCTION_dist($p) {
function balise_LANG_dist ($p) {
$_lang = champ_sql('lang', $p);
if (!$p->etoile)
function balise_LANG_dist ($p) {
$_lang = champ_sql('lang', $p);
if (!$p->etoile)
- $p->code = "htmlentities($_lang ? $_lang : \$GLOBALS['spip_lang'])";
+ $p->code = "
spip_
htmlentities($_lang ? $_lang : \$GLOBALS['spip_lang'])";
else
else
- $p->code = "htmlentities($_lang)";
+ $p->code = "
spip_
htmlentities($_lang)";
$p->interdire_scripts = false;
return $p;
}
$p->interdire_scripts = false;
return $p;
}
@@
-1158,7
+1158,10
@@
function balise_SET_dist($p){
if (!$_nom OR !$_val) {
$err_b_s_a = array('zbug_balise_sans_argument', array('balise' => 'SET'));
erreur_squelette($err_b_s_a, $p);
if (!$_nom OR !$_val) {
$err_b_s_a = array('zbug_balise_sans_argument', array('balise' => 'SET'));
erreur_squelette($err_b_s_a, $p);
- } else $p->code = "vide(\$Pile['vars'][(string)$_nom] = $_val)";
+ }
+ // affectation $_zzz inutile, mais permet de contourner un bug OpCode cache sous PHP 5.5.4
+ // cf https://bugs.php.net/bug.php?id=65845
+ else $p->code = "vide(\$Pile['vars'][\$_zzz=(string)$_nom] = $_val)";
$p->interdire_scripts = false; // la balise ne renvoie rien
return $p;
$p->interdire_scripts = false; // la balise ne renvoie rien
return $p;