Skip to content

Commit d1276bb

Browse files
committed
Fix admin grid filter backslash escaping issue
magento#39513
1 parent 6cfb9b6 commit d1276bb

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Ui/Component/Filters/Type

1 file changed

+1
-1
lines changed

Diff for: app/code/Magento/Ui/Component/Filters/Type/Input.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function applyFilter(): void
7474
$valueExpression = $filterConfig['valueExpression'] ?? null;
7575
}
7676
if ($conditionType === self::CONDITION_LIKE) {
77-
$value = str_replace(['%', '_'], ['\%', '\_'], $value);
77+
$value = str_replace(['\\', '%', '_'], ['\\\\', '\%', '\_'], $value);
7878
$valueExpression = $valueExpression ?? '%%%s%%';
7979
}
8080
if ($valueExpression) {

0 commit comments

Comments
 (0)