2
0
forked from Wavyzz/dolibarr

FIX #yogosha19628

This commit is contained in:
Laurent Destailleur
2023-12-18 19:47:49 +01:00
parent 932f9f28e6
commit 0b0f05523e
2 changed files with 10 additions and 5 deletions

View File

@@ -1357,7 +1357,7 @@ function dol_sanitizeFileName($str, $newstr = '_', $unaccent = 1)
}
/**
* Clean a string to use it as a path name.
* Clean a string to use it as a path name. Similare to dol_sanitizeFileName but accept / and \ chars.
* Replace also '--' and ' -' strings, they are used for parameters separation (Note: ' - ' is allowed).
*
* @param string $str String to clean