diff --git a/lib/Varien/Db/Adapter/Pdo/Mysql.php b/lib/Varien/Db/Adapter/Pdo/Mysql.php index d8e7d9a7e6752..8b8b156429bab 100644 --- a/lib/Varien/Db/Adapter/Pdo/Mysql.php +++ b/lib/Varien/Db/Adapter/Pdo/Mysql.php @@ -1885,7 +1885,7 @@ public function insertOnDuplicate($table, array $data, array $fields = array()) } } elseif (is_string($v)) { $value = sprintf('VALUES(%s)', $this->quoteIdentifier($v)); - $field = $v; + $field = $this->quoteIdentifier($v); } if ($field && $value) { diff --git a/lib/Varien/Io/Sftp.php b/lib/Varien/Io/Sftp.php index 58c6625ad4699..a5d2fd9d30b4f 100644 --- a/lib/Varien/Io/Sftp.php +++ b/lib/Varien/Io/Sftp.php @@ -179,7 +179,7 @@ public function read($filename, $dest=null) */ public function write($filename, $src, $mode=null) { - return $this->_connection->put($filename, $src); + return $this->_connection->put($filename, $src, NET_SFTP_LOCAL_FILE); } /**