forked from Public/pics
Allow capitals and slashes in album slugs.
This commit is contained in:
parent
8b73420936
commit
f1408ad2ee
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user