sanitize.php
Table of Contents
Functions
- spip_desinfecte() : mixed
- Supprimer les éventuels caracteres nuls %00, qui peuvent tromper la commande is_readable('chemin/vers/fichier/interdit%00truc_normal').
- spip_sanitize_classname() : string|array<string|int, string>
- Nettoie une chaine pour servir comme classes CSS.
Functions
spip_desinfecte()
Supprimer les éventuels caracteres nuls %00, qui peuvent tromper la commande is_readable('chemin/vers/fichier/interdit%00truc_normal').
    
                    spip_desinfecte(array<string|int, mixed> &$t[, bool $deep = true ]) : mixed
        Cette fonction est appliquée par SPIP à son initialisation sur GET/POST/COOKIES/GLOBALS
Parameters
- $t : array<string|int, mixed>
- 
                    le tableau ou la chaine à desinfecter (passage par référence) 
- $deep : bool = true
- 
                    = true : appliquer récursivement 
spip_sanitize_classname()
Nettoie une chaine pour servir comme classes CSS.
    
                    spip_sanitize_classname(string|array<string|int, string> $classes) : string|array<string|int, string>
    
        Parameters
- $classes : string|array<string|int, string>