From 4da44995691d3499124ca94760c7b4b46b85c1fb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 26 Nov 2020 23:05:49 +0100 Subject: [PATCH] FIX Param joinfiles not sanitized Conflicts: htdocs/admin/mails_templates.php --- htdocs/admin/mails_templates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/mails_templates.php b/htdocs/admin/mails_templates.php index a26e0801238..ef251846d99 100644 --- a/htdocs/admin/mails_templates.php +++ b/htdocs/admin/mails_templates.php @@ -280,7 +280,7 @@ if (empty($reshook)) elseif ($keycode == 'content') { $sql .= "'".$db->escape(GETPOST($keycode, 'restricthtml'))."'"; } - elseif (in_array($keycode, array('joinfile', 'private', 'position', 'scale'))) { + elseif (in_array($keycode, array('joinfiles', 'private', 'position', 'scale'))) { $sql .= (int) GETPOST($keycode, 'int'); } else {