Fix arguments to dol_print_error
This commit is contained in:
parent
cf667ad380
commit
a5d2ae0eeb
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ if ($user->socid > 0) {
|
|||
if (preg_match('/\.\./', $upload_dir) || preg_match('/[<>|]/', $upload_dir)) {
|
||||
dol_syslog("Refused to deliver file ".$upload_dir);
|
||||
// Do no show plain path in shown error message
|
||||
dol_print_error(0, $langs->trans("ErrorFileNameInvalid", $upload_dir));
|
||||
dol_print_error(null, $langs->trans("ErrorFileNameInvalid", $upload_dir));
|
||||
exit;
|
||||
}
|
||||
// Check permissions
|
||||
|
|
|
|||
Loading…
Reference in a new issue