ensure suspected blossom request hash does not have slashes in it

This commit is contained in:
andrewheadricke 2025-03-20 17:08:55 +11:00 committed by fiatjaf_
parent f47282c745
commit 28ce6cfb7a

View File

@ -49,7 +49,7 @@ func New(rl *khatru.Relay, serviceURL string) *BlossomServer {
return
}
if len(strings.SplitN(r.URL.Path, ".", 2)[0]) == 65 {
if (len(r.URL.Path) == 65 || strings.Index(r.URL.Path, ".") == 65) && strings.Index(r.URL.Path[1:], "/") == -1 {
if r.Method == "HEAD" {
bs.handleHasBlob(w, r)
return