Last active
April 1, 2019 08:35
-
-
Save tdgroot/adf9d368957fe851d6256b174b98433a to your computer and use it in GitHub Desktop.
For Magento 2 patches for PRODSECBUG-2198, see: https://gist.github.com/peterjaap/433a07a08962ea8955e64b39c84cc4e3 and https://gist.github.com/peterjaap/d7eaceb0e28e76cb92426a9defed0d9a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/Varien/Db/Adapter/Pdo/Mysql.php b/lib/Varien/Db/Adapter/Pdo/Mysql.php | |
index e6f48cf1c3..511b9e21c1 100644 | |
--- a/lib/Varien/Db/Adapter/Pdo/Mysql.php | |
+++ b/lib/Varien/Db/Adapter/Pdo/Mysql.php | |
@@ -20,7 +20,7 @@ | |
* | |
* @category Varien | |
* @package Varien_Db | |
- * @copyright Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com) | |
+ * @copyright Copyright (c) 2006-2019 Magento, Inc. (http://www.magento.com) | |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
*/ | |
@@ -2947,7 +2947,7 @@ public function prepareSqlCondition($fieldName, $condition) | |
if (isset($condition['to'])) { | |
$query .= empty($query) ? '' : ' AND '; | |
$to = $this->_prepareSqlDateCondition($condition, 'to'); | |
- $query = $this->_prepareQuotedSqlCondition($query . $conditionKeyMap['to'], $to, $fieldName); | |
+ $query = $query . $this->_prepareQuotedSqlCondition($conditionKeyMap['to'], $to, $fieldName); | |
} | |
} elseif (array_key_exists($key, $conditionKeyMap)) { | |
$value = $condition[$key]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment