]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Helper/TagsAssigner.php
Merge pull request #3347 from Kdecherf/entry-stats
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Helper / TagsAssigner.php
index ae712d772a188f6c47f66886784be9959a1e9470..0bfe5c572a5e1d72d338433ad81630c596755114 100644 (file)
@@ -8,9 +8,8 @@ use Wallabag\CoreBundle\Repository\TagRepository;
 
 class TagsAssigner
 {
-
     /**
-     * @var TagRepository $tagRepository
+     * @var TagRepository
      */
     protected $tagRepository;
 
@@ -46,7 +45,7 @@ class TagsAssigner
         }
 
         foreach ($tags as $label) {
-            $label = trim($label);
+            $label = trim(mb_convert_case($label, MB_CASE_LOWER));
 
             // avoid empty tag
             if (0 === strlen($label)) {