From 586de61d44547dc05ae545ac3c99de69aeea90f7 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 26 Mar 2024 12:51:04 +0100 Subject: [PATCH] Fix arguments to dol_print_error --- htdocs/public/website/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }