Skip to content

Commit

Permalink
return no entries when out of bounds musicFolderId is requested
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Nov 8, 2023
1 parent a472421 commit c55339e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/ctrlsubsonic/handlers_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"log"
"math"
"net/http"
"os"
"path/filepath"
"sync"
"time"
Expand Down Expand Up @@ -503,7 +504,7 @@ func getMusicFolder(musicPaths []MusicPath, p params.Params) string {
return ""
}
if idx < 0 || idx >= len(musicPaths) {
return ""
return os.DevNull
}
return musicPaths[idx].Path
}
Expand Down

0 comments on commit c55339e

Please sign in to comment.