Replace the last vestiges of htmlentities with htmlspecialchars
This commit is contained in:
@@ -186,8 +186,8 @@ class EditAlbum extends HTMLController
|
||||
}
|
||||
|
||||
// Quick stripping.
|
||||
$data['tag'] = htmlentities($data['tag']);
|
||||
$data['description'] = htmlentities($data['description']);
|
||||
$data['tag'] = htmlspecialchars($data['tag']);
|
||||
$data['description'] = htmlspecialchars($data['description']);
|
||||
$data['slug'] = strtr($data['slug'], [' ' => '-', '--' => '-', '&' => 'and', '=>' => '', "'" => "", ":"=> "", '\\' => '-']);
|
||||
|
||||
// TODO: when updating slug, update slug for all photos in this album.
|
||||
|
||||
Reference in New Issue
Block a user