FIX Use of accent into filename of GED
This commit is contained in:
parent
b30d7371a4
commit
ccf78a1af4
@ -67,7 +67,7 @@ if (!$section) {
|
|||||||
dol_print_error('', 'Error, section parameter missing');
|
dol_print_error('', 'Error, section parameter missing');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$urlfile = (string) dol_sanitizePathName(GETPOST("urlfile"));
|
$urlfile = (string) dol_sanitizePathName(GETPOST("urlfile"), '_', 0);
|
||||||
if (!$urlfile) {
|
if (!$urlfile) {
|
||||||
dol_print_error('', "ErrorParamNotDefined");
|
dol_print_error('', "ErrorParamNotDefined");
|
||||||
exit;
|
exit;
|
||||||
@ -131,7 +131,7 @@ if ($action == 'update' && $permtoadd) {
|
|||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
$oldlabel = GETPOST('urlfile', 'alpha');
|
$oldlabel = GETPOST('urlfile', 'alpha');
|
||||||
$newlabel = dol_sanitizeFileName(GETPOST('label', 'alpha'));
|
$newlabel = dol_sanitizeFileName(GETPOST('label', 'alpha'), '_', 0);
|
||||||
$shareenabled = GETPOST('shareenabled', 'alpha');
|
$shareenabled = GETPOST('shareenabled', 'alpha');
|
||||||
|
|
||||||
//$db->begin();
|
//$db->begin();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user