From 068d1dad3e30cbffa6813355624be45a42a09798 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 19 Feb 2018 11:54:56 +0100 Subject: [PATCH] Allow capitals in tag slugs. --- controllers/EditTag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/EditTag.php b/controllers/EditTag.php index e8995efe..24126c31 100644 --- a/controllers/EditTag.php +++ b/controllers/EditTag.php @@ -120,7 +120,7 @@ class EditTag extends HTMLController $data = $form->getData(); // Quick stripping. - $data['slug'] = strtr(strtolower($data['slug']), [' ' => '-', '--' => '-', '&' => 'and', '=>' => '', "'" => "", ":"=> "", '/' => '-', '\\' => '-']); + $data['slug'] = strtr($data['slug'], [' ' => '-', '--' => '-', '&' => 'and', '=>' => '', "'" => "", ":"=> "", '/' => '-', '\\' => '-']); // Creating a new tag? if (!$id_tag)