-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
When I create a update query with an IN statement for string that contain a double quote the $sql is null after the preg_replace at
magento-zend-db/library/Zend/Db/Statement.php
Line 210 in 475addb
$sql = preg_replace("/\"(\\\\\"|[^\"])*\"/Us", '', $sql); |
Original sql:
original.txt
Sql after replace on
magento-zend-db/library/Zend/Db/Statement.php
Line 198 in 475addb
$sql = preg_replace("/$q([^$q{$escapeChar}]*|($qe)*)*$q/s", '', $sql); |
after_replace.txt
Solution is to add an null check and return an empty string on line 211
RetroProgrammist, robertspinja and benjamenjohnsondev
Metadata
Metadata
Assignees
Labels
No labels