Tag: render tags case-insensitive by storing them in lowercase

Fixes #2502

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf
2017-05-21 17:01:59 +02:00
parent 2490f61dca
commit 7036d91fe7
4 changed files with 7 additions and 5 deletions

View File

@ -45,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)) {