Skip to content

Commit c55339e

Browse files
committed
return no entries when out of bounds musicFolderId is requested
1 parent a472421 commit c55339e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/ctrlsubsonic/handlers_common.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"log"
77
"math"
88
"net/http"
9+
"os"
910
"path/filepath"
1011
"sync"
1112
"time"
@@ -503,7 +504,7 @@ func getMusicFolder(musicPaths []MusicPath, p params.Params) string {
503504
return ""
504505
}
505506
if idx < 0 || idx >= len(musicPaths) {
506-
return ""
507+
return os.DevNull
507508
}
508509
return musicPaths[idx].Path
509510
}

0 commit comments

Comments
 (0)