From f1408ad2eef85359615ad28c63560c26c27dd23a Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 19 Feb 2018 11:54:29 +0100 Subject: [PATCH] Allow capitals and slashes in album slugs. --- controllers/EditAlbum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/EditAlbum.php b/controllers/EditAlbum.php index eeeaa7be..26e2c6a3 100644 --- a/controllers/EditAlbum.php +++ b/controllers/EditAlbum.php @@ -130,7 +130,7 @@ class EditAlbum extends HTMLController // Quick stripping. $data['tag'] = htmlentities($data['tag']); $data['description'] = htmlentities($data['description']); - $data['slug'] = strtr(strtolower($data['slug']), [' ' => '-', '--' => '-', '&' => 'and', '=>' => '', "'" => "", ":"=> "", '/' => '-', '\\' => '-']); + $data['slug'] = strtr($data['slug'], [' ' => '-', '--' => '-', '&' => 'and', '=>' => '', "'" => "", ":"=> "", '\\' => '-']); // TODO: when updating slug, update slug for all photos in this album.