Skip to content

Commit

Permalink
fix(subsonic): update music folder id in bounds check
Browse files Browse the repository at this point in the history
fixes #271
  • Loading branch information
sentriz committed Dec 12, 2022
1 parent ce31310 commit c6ddee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ctrlsubsonic/handlers_common.go
Expand Up @@ -35,7 +35,7 @@ func getMusicFolder(musicPaths paths.MusicPaths, p params.Params) string {
if err != nil {
return ""
}
if idx < 0 || idx > len(musicPaths) {
if idx < 0 || idx >= len(musicPaths) {
return ""
}
return musicPaths[idx].Path
Expand Down

0 comments on commit c6ddee8

Please sign in to comment.