[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git] / www / plugins-dist / textwheel / inc / texte.php
index 620079e..c774195 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2013                                                *
+ *  Copyright (c) 2001-2014                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -516,7 +516,7 @@ function traiter_raccourcis($t, $show_autobr = false) {
                if (_request('var_mode') == 'wheel'
                AND autoriser('debug')) {
                        $f = $wheel->compile();
-                       echo "<pre>\n".htmlspecialchars($f)."</pre>\n";
+                       echo "<pre>\n".spip_htmlspecialchars($f)."</pre>\n";
                        exit;
                }
                $notes = charger_fonction('notes', 'inc');
@@ -579,6 +579,8 @@ function propre($t, $connect=null, $env=array()) {
 
        if (!$t) return strval($t);
 
+       $t = pipeline('pre_echappe_html_propre', $t);
+
        $t = echappe_html($t);
        $t = expanser_liens($t,$connect, $env);