From: Seamus Lee Date: Mon, 29 Aug 2016 07:29:12 +0000 (+1000) Subject: Fix escaping X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=65a6387f33de609c7c9c354dcf874f050c198f0b;p=civicrm-core.git Fix escaping --- diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 5bfbd9dfc4..485280bd74 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -312,7 +312,7 @@ class CRM_Utils_File { } $db->query('SET NAMES utf8'); $transactionId = CRM_Utils_Type::escape(CRM_Utils_Request::id(), 'String'); - $db->query('SET @uniqueID = ' . $transactionId); + $db->query('SET @uniqueID = ' . "'$transactionId'"); if (!$isQueryString) { $string = $prefix . file_get_contents($fileName);