dépôts
/
velocampus
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git]
/
www
/
ecrire
/
inc
/
filtres_mime.php
diff --git
a/www/ecrire/inc/filtres_mime.php
b/www/ecrire/inc/filtres_mime.php
index
5ca260d
..
8144c10
100644
(file)
--- a/
www/ecrire/inc/filtres_mime.php
+++ b/
www/ecrire/inc/filtres_mime.php
@@
-3,7
+3,7
@@
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-201
1
*
+ * 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. *
@@
-25,7
+25,9
@@
function filtre_multipart_dist($t) {return '';}
// http://doc.spip.org/@filtre_text_txt_dist
function filtre_text_dist($t) {
// http://doc.spip.org/@filtre_text_txt_dist
function filtre_text_dist($t) {
- return '<pre>' . echapper_tags($t) . '</pre>';
+ static $t1 = array('&', '<', '>');
+ static $t2 = array('&', '<', '>');
+ return '<pre>' . str_replace($t1, $t2, $t) . '</pre>';
}
// http://doc.spip.org/@filtre_text_csv_dist
}
// http://doc.spip.org/@filtre_text_csv_dist