From 441a0baeff63922941d076da9cda024ee11a0823 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 4 Jul 2020 20:00:05 -0400 Subject: [PATCH 1/2] Properly handle user agent input --- submit_ticket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submit_ticket.php b/submit_ticket.php index 07c2d612..527d18e2 100644 --- a/submit_ticket.php +++ b/submit_ticket.php @@ -426,7 +426,7 @@ $tmpvar['screen_resolution_width'] = hesk_POST('screen_resolution_width'); $tmpvar['screen_resolution_width'] = ($tmpvar['screen_resolution_width'] === '') ? 'NULL' : intval($tmpvar['screen_resolution_width']); -$tmpvar['user_agent'] = $_SERVER['HTTP_USER_AGENT']; +$tmpvar['user_agent'] = hesk_input($_SERVER['HTTP_USER_AGENT']); // Tickets from customers never have a due date $tmpvar['due_date'] = ''; From 17fc4edee60db4e0115b230fb056931f84e2521a Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 4 Jul 2020 20:04:12 -0400 Subject: [PATCH 2/2] Update version --- install/install_functions.inc.php | 2 +- install/migrations/core.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/install/install_functions.inc.php b/install/install_functions.inc.php index 04346814..a5100b13 100644 --- a/install/install_functions.inc.php +++ b/install/install_functions.inc.php @@ -16,7 +16,7 @@ // We will be installing this HESK version: define('HESK_NEW_VERSION','2.8.6'); -define('MODS_FOR_HESK_NEW_VERSION','2020.1.0'); +define('MODS_FOR_HESK_NEW_VERSION','2020.1.1'); define('REQUIRE_PHP_VERSION','5.3.0'); define('REQUIRE_MYSQL_VERSION','5.0.7'); diff --git a/install/migrations/core.php b/install/migrations/core.php index 786bb2c1..66d6b9b3 100644 --- a/install/migrations/core.php +++ b/install/migrations/core.php @@ -244,5 +244,7 @@ function getAllMigrations() { 183 => new UpdateMigration('2019.1.0', '2018.2.0', 183), // 2020.1.0 184 => new UpdateMigration('2020.1.0', '2019.1.0', 184), + // 2020.1.1 + 185 => new UpdateMigration('2020.1.1', '2020.1.0', 185), ); }