CRM-19261 Set uniqueID as well
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 29 Aug 2016 22:24:44 +0000 (08:24 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 29 Aug 2016 07:14:59 +0000 (17:14 +1000)
CRM/Utils/File.php

index c8f322b43728c03212ca7ee1edb8588738205309..5bfbd9dfc4cb5fc4b9689f0893910ba28ccab4fd 100644 (file)
@@ -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);