diff core/modules/locale/src/StringDatabaseStorage.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/modules/locale/src/StringDatabaseStorage.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/locale/src/StringDatabaseStorage.php	Thu May 09 15:33:08 2019 +0100
@@ -438,7 +438,7 @@
         $filter = $query;
       }
       foreach ($options['filters'] as $field => $string) {
-        $filter->condition($this->dbFieldTable($field) . '.' . $field, '%' . db_like($string) . '%', 'LIKE');
+        $filter->condition($this->dbFieldTable($field) . '.' . $field, '%' . $this->connection->escapeLike($string) . '%', 'LIKE');
       }
     }