Changeset 107164 in spip-zone
- Timestamp:
- Oct 25, 2017, 3:11:22 PM (3 years ago)
- Location:
- _plugins_/couteau_suisse
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/couteau_suisse/couteau_suisse_fonctions.php
r107153 r107164 38 38 // Fonction propre() sans echapper_html_suspect() (SPIP >= 3.1) 39 39 function cs_propre_sain($texte) { 40 if 40 if(!$texte or !defined('_SPIP30100') 41 41 or strpos($texte, '<') === false or strpos($texte, '=') === false) { 42 42 return propre($texte); 43 43 } 44 $texte = propre(str_replace('=', '#CSEGAL#', $texte)); 45 return str_replace('#CSEGAL#', '=', $texte); 44 $texte = propre(str_replace('=', '@CSEGAL@', $texte)); 45 return str_replace('@CSEGAL@', '=', $texte); 46 } 47 48 // Fonction _T() sans echapper_html_suspect() (SPIP >= 3.1) 49 function _T_sain($texte, $args = array(), $options = array()) { 50 if(defined('_SPIP30100')) $options['sanitize'] = FALSE; 51 if(defined('_SPIP20100')) return _T($texte, $args, $options); 52 return _T($texte, $args); 46 53 } 47 54 -
_plugins_/couteau_suisse/fonds/derniers_connectes.html
r79921 r107164 29 29 [(#STATUT|=={nouveau}|oui) #SET{icon,#GET{aide}}] 30 30 <li> 31 [(#VAL{'couteau:stats_auteur'}|_T {#ARRAY{icon,#GET{icon},nom,#GET{nom},date,#EN_LIGNE|cs_date_long}})]31 [(#VAL{'couteau:stats_auteur'}|_T_sain{#ARRAY{icon,#GET{icon},nom,#GET{nom},date,#EN_LIGNE|cs_date_long}})] 32 32 </li> 33 33 </BOUCLE_aut> … … 52 52 <a href="#URL_ACTION_AUTEUR{instituer_objet,auteur-#ID_AUTEUR-5poubelle,#SELF#pagination_aut2}" class="suppr" title="<:texte_statut_poubelle|attribut_html:>">x</a>] 53 53 </div>] 54 [(#VAL{'couteau:stats_auteur'}|_T {#ARRAY{icon,#GET{aide},nom,#GET{nom},date,#MAJ|cs_date_long}})]54 [(#VAL{'couteau:stats_auteur'}|_T_sain{#ARRAY{icon,#GET{aide},nom,#GET{nom},date,#MAJ|cs_date_long}})] 55 55 </li> 56 56 </BOUCLE_aut2> -
_plugins_/couteau_suisse/outils/cout_fonctions.php
r107153 r107164 43 43 } 44 44 45 // Fonction propre() sans paragraphage 45 // Fonction propre() sans paragraphage et sans echapper_html_suspect() (SPIP >= 3.1) 46 46 function cs_propre($texte) { 47 47 include_spip('inc/texte'); 48 return trim(PtoBR( propre($texte)));48 return trim(PtoBR(cs_propre_sain($texte))); 49 49 } 50 50 -
_plugins_/couteau_suisse/paquet.xml
r107162 r107164 2 2 prefix="couteau_suisse" 3 3 categorie="maintenance" 4 version="1.10.0 2"4 version="1.10.03" 5 5 etat="stable" 6 6 compatibilite="[1.9.2;3.2.*]" -
_plugins_/couteau_suisse/plugin.xml
r107162 r107164 3 3 <slogan>... ou plus de fonctionnalités pour SPIP !</slogan> 4 4 <icon>img/couteau-50.gif</icon> 5 <version>1.10.0 2</version>5 <version>1.10.03</version> 6 6 <version_base>1.11</version_base> 7 7 <auteur>Patrice Vanneufville
Note: See TracChangeset
for help on using the changeset viewer.