mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix 404 not returning immediately in asset resolver (#4597)
This commit is contained in:
@@ -50,6 +50,7 @@ func (rs pluginRoutes) Assets(w http.ResponseWriter, r *http.Request) {
|
|||||||
r.URL.Path, dir = p.UI.Assets.GetFilesystemLocation(r.URL.Path)
|
r.URL.Path, dir = p.UI.Assets.GetFilesystemLocation(r.URL.Path)
|
||||||
if dir == "" {
|
if dir == "" {
|
||||||
http.NotFound(w, r)
|
http.NotFound(w, r)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
dir = filepath.Join(pluginDir, filepath.FromSlash(dir))
|
dir = filepath.Join(pluginDir, filepath.FromSlash(dir))
|
||||||
|
|||||||
Reference in New Issue
Block a user