From 00fc2b44f4be1a489b1569e337e4794f042fc855 Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Sat, 26 Nov 2016 19:52:50 +0100 Subject: Enforce lowercase on domain name filter Signed-off-by: Kevin Decherf --- src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Wallabag') diff --git a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php index 7b02f85c..ee66c728 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EntryFilterType.php @@ -90,7 +90,7 @@ class EntryFilterType extends AbstractType if (strlen($value) <= 2 || empty($value)) { return; } - $expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->literal('%'.$value.'%')); + $expression = $filterQuery->getExpr()->like($field, $filterQuery->getExpr()->lower($filterQuery->getExpr()->literal('%'.$value.'%'))); return $filterQuery->createCondition($expression); }, -- cgit v1.2.3