From b228b20269e06f99d3fb770ce88e28916e2dc4f6 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 30 Aug 2016 08:24:44 +1000 Subject: [PATCH] CRM-19261 Set uniqueID as well --- CRM/Utils/File.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index c8f322b437..5bfbd9dfc4 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -311,6 +311,8 @@ class CRM_Utils_File { $db->query('SET SESSION sql_mode = STRICT_TRANS_TABLES'); } $db->query('SET NAMES utf8'); + $transactionId = CRM_Utils_Type::escape(CRM_Utils_Request::id(), 'String'); + $db->query('SET @uniqueID = ' . $transactionId); if (!$isQueryString) { $string = $prefix . file_get_contents($fileName); -- 2.25.1