From fcfbed98ba92841dddf51b1efebaf2773fd58627 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 11 Aug 2020 13:34:14 +0200 Subject: [PATCH] fix(targetticket,targetchange): too many escaping on target_name Signed-off-by: Thierry Bugier --- inc/targetchange.class.php | 2 +- inc/targetticket.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/targetchange.class.php b/inc/targetchange.class.php index a0bd224ea..03082259b 100644 --- a/inc/targetchange.class.php +++ b/inc/targetchange.class.php @@ -175,7 +175,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con } // Escape text fields - foreach (['target_name'] as $key) { + foreach (['name'] as $key) { $input[$key] = $DB->escape($input[$key]); } diff --git a/inc/targetticket.class.php b/inc/targetticket.class.php index 435b9d686..253e6a98a 100644 --- a/inc/targetticket.class.php +++ b/inc/targetticket.class.php @@ -1053,7 +1053,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con } // Escape text fields - foreach (['target_name'] as $key) { + foreach (['name'] as $key) { $input[$key] = $DB->escape($input[$key]); }