mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-21 20:48:00 +01:00
Sanitise track numbers
This commit is contained in:
parent
4b0ed2fd1b
commit
c36a7145a5
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class ParseTrackTagsCommand extends CommandBase
|
|||
if ($this->track->album_id === null) {
|
||||
$this->track->track_number = null;
|
||||
} else {
|
||||
$this->track->track_number = $this->input['track_number'] ?? $parsedTags['track_number'];
|
||||
$this->track->track_number = filter_var($this->input['track_number'] ?? $parsedTags['track_number'], FILTER_SANITIZE_NUMBER_INT);
|
||||
}
|
||||
|
||||
$this->track->released_at = isset($this->input['released_at'])
|
||||
|
|
Loading…
Reference in a new issue