forked from Wavyzz/dolibarr
Fix: Uniformisation du code. Sur le noms de fichiers PDF gnrs, on garde les parenthses partout. Ceci afin d'eviter conflit entre un nom temporaire et un nom du module de numrotation.
This commit is contained in:
@@ -143,8 +143,10 @@ function unaccent($str)
|
||||
*/
|
||||
function sanitize_string($str)
|
||||
{
|
||||
$forbidden_chars=array(" ","'","/","\\",":","*","?","\"","<",">","|","[","]",",",";","=");
|
||||
return str_replace($forbidden_chars,"_",$str);
|
||||
$forbidden_chars_to_underscore=array(" ","'","/","\\",":","*","?","\"","<",">","|","[","]",",",";","=");
|
||||
//$forbidden_chars_to_remove=array("(",")");
|
||||
$forbidden_chars_to_remove=array();
|
||||
return str_replace($forbidden_chars_to_underscore,"_",str_replace($forbidden_chars_to_remove,"",$str));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user