Allow capitals and slashes in album slugs.

This commit is contained in:
Aaron van Geffen 2018-02-19 11:54:29 +01:00
parent 8b73420936
commit f1408ad2ee
1 changed files with 1 additions and 1 deletions

View File

@ -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.