diff --git a/htdocs/public/website/index.php b/htdocs/public/website/index.php index d8447088922..29e389ae1bd 100644 --- a/htdocs/public/website/index.php +++ b/htdocs/public/website/index.php @@ -1,5 +1,6 @@ + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -191,7 +192,7 @@ if (!$accessallowed) { if (preg_match('/\.\./', $original_file) || preg_match('/[<>|]/', $original_file)) { dol_syslog("Refused to deliver file ".$original_file); $file = basename($original_file); // Do no show plain path of original_file in shown error message - dol_print_error(0, $langs->trans("ErrorFileNameInvalid", $file)); + dol_print_error(null, $langs->trans("ErrorFileNameInvalid", $file)); exit; }