FIX Use of accent into filename of GED

This commit is contained in:
Laurent Destailleur 2021-10-17 12:30:08 +02:00
parent b30d7371a4
commit ccf78a1af4

View File

@ -67,7 +67,7 @@ if (!$section) {
dol_print_error('', 'Error, section parameter missing');
exit;
}
$urlfile = (string) dol_sanitizePathName(GETPOST("urlfile"));
$urlfile = (string) dol_sanitizePathName(GETPOST("urlfile"), '_', 0);
if (!$urlfile) {
dol_print_error('', "ErrorParamNotDefined");
exit;
@ -131,7 +131,7 @@ if ($action == 'update' && $permtoadd) {
$error = 0;
$oldlabel = GETPOST('urlfile', 'alpha');
$newlabel = dol_sanitizeFileName(GETPOST('label', 'alpha'));
$newlabel = dol_sanitizeFileName(GETPOST('label', 'alpha'), '_', 0);
$shareenabled = GETPOST('shareenabled', 'alpha');
//$db->begin();