[SPIP] ~maj 3.0.10 --> 3.0.14
[lhc/web/www.git] / www / ecrire / inc / json.php
index dd79b42..538d08d 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.     *
@@ -73,7 +73,7 @@ function json_export($var) {
        // flag indiquant qu'on est en iframe et qu'il faut proteger nos
        // donnees dans un <textarea> ; attention $_FILES a ete vide par array_pop
        if (defined('FILE_UPLOAD'))
-               return "<textarea>".htmlspecialchars($var)."</textarea>";
+               return "<textarea>".spip_htmlspecialchars($var)."</textarea>";
        else
                return $var;
 }