Allow : into file names
This commit is contained in:
parent
888e5ed2c5
commit
c4b3dc40c3
@ -680,7 +680,7 @@ function dol_size($size,$type='')
|
|||||||
*/
|
*/
|
||||||
function dol_sanitizeFileName($str,$newstr='_',$unaccent=1)
|
function dol_sanitizeFileName($str,$newstr='_',$unaccent=1)
|
||||||
{
|
{
|
||||||
$filesystem_forbidden_chars = array('<','>',':','/','\\','?','*','|','"','°');
|
$filesystem_forbidden_chars = array('<','>','/','\\','?','*','|','"','°');
|
||||||
return dol_string_nospecial($unaccent?dol_string_unaccent($str):$str, $newstr, $filesystem_forbidden_chars);
|
return dol_string_nospecial($unaccent?dol_string_unaccent($str):$str, $newstr, $filesystem_forbidden_chars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -97,7 +97,7 @@ if ($object->id)
|
|||||||
|
|
||||||
$head=holiday_prepare_head($object);
|
$head=holiday_prepare_head($object);
|
||||||
|
|
||||||
dol_fiche_head($head, 'documents',$langs->trans("CPTitreMenu"),0,'holiday');
|
dol_fiche_head($head, 'documents', $langs->trans("CPTitreMenu"), -1,'holiday');
|
||||||
|
|
||||||
|
|
||||||
// Construit liste des fichiers
|
// Construit liste des fichiers
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user