[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git] / www / ecrire / public / assembler.php
index a9c503e..34f4fba 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2012                                                *
+ *  Copyright (c) 2001-2014                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -102,7 +102,7 @@ function assembler($fond, $connect='') {
                        $page = $produire_page($fond, $contexte, $use_cache, $chemin_cache, NULL, $page, $lastmodified, $connect);
                        if ($page === '') {
                                $erreur = _T('info_erreur_squelette2',
-                                       array('fichier'=>htmlspecialchars($fond).'.'._EXTENSION_SQUELETTES));
+                                       array('fichier'=>spip_htmlspecialchars($fond).'.'._EXTENSION_SQUELETTES));
                                erreur_squelette($erreur);
                                // eviter des erreurs strictes ensuite sur $page['cle'] en PHP >= 5.4
                                $page = array('texte' => '', 'erreur' => $erreur);
@@ -433,7 +433,7 @@ function inclure_modele($type, $id, $params, $lien, $connect='', $env=array()) {
        $params = array_filter(explode('|', $params));
        if ($params) {
                list(,$soustype) = each($params);
-               $soustype = strtolower($soustype);
+               $soustype = strtolower(trim($soustype));
                if (in_array($soustype,
                array('left', 'right', 'center', 'ajax'))) {
                        list(,$soustype) = each($params);