diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2017-05-21 17:01:59 +0200 |
---|---|---|
committer | Kevin Decherf <kevin@kdecherf.com> | 2017-08-27 16:51:23 +0200 |
commit | 7036d91fe7332a797bf5cbccec8790bcef8437d4 (patch) | |
tree | a1ba33f445cb7156c20f2e419c4b945bee8f1100 /src/Wallabag/CoreBundle/Helper | |
parent | 2490f61dca635026a3eb9b5e9b6978b1981b1172 (diff) | |
download | wallabag-7036d91fe7332a797bf5cbccec8790bcef8437d4.tar.gz wallabag-7036d91fe7332a797bf5cbccec8790bcef8437d4.tar.zst wallabag-7036d91fe7332a797bf5cbccec8790bcef8437d4.zip |
Tag: render tags case-insensitive by storing them in lowercase
Fixes #2502
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/TagsAssigner.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php index a2fb0b9a..0bfe5c57 100644 --- a/src/Wallabag/CoreBundle/Helper/TagsAssigner.php +++ b/src/Wallabag/CoreBundle/Helper/TagsAssigner.php | |||
@@ -45,7 +45,7 @@ class TagsAssigner | |||
45 | } | 45 | } |
46 | 46 | ||
47 | foreach ($tags as $label) { | 47 | foreach ($tags as $label) { |
48 | $label = trim($label); | 48 | $label = trim(mb_convert_case($label, MB_CASE_LOWER)); |
49 | 49 | ||
50 | // avoid empty tag | 50 | // avoid empty tag |
51 | if (0 === strlen($label)) { | 51 | if (0 === strlen($label)) { |