Skip to content

Commit c7d6ac3

Browse files
author
Maksym Savich
committed
MAGETWO-35833: [GitHub] Magento\Framework\Data\Collection\Filesystem filter issue #1160
1 parent 77e1bfd commit c7d6ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Data/Collection/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ public function getAllIds()
698698
*/
699699
public function filterCallbackLike($field, $filterValue, $row)
700700
{
701-
$filterValueRegex = str_replace('%', '(.*?)', str_replace('\'', '', preg_quote($filterValue, '/')));
701+
$filterValueRegex = '(.*?)' . preg_quote(trim(stripslashes($filterValue), '%\''), '/') . '(.*?)';
702702
return (bool)preg_match("/^{$filterValueRegex}\$/i", $row[$field]);
703703
}
704704

0 commit comments

Comments
 (0)