2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2024-11-13 16:14:26 +01:00
parent d7b65ca59e
commit 1f00485763

View File

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