mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-04-11 05:19:48 +02:00
ensure suspected blossom request hash does not have slashes in it
This commit is contained in:
parent
f47282c745
commit
28ce6cfb7a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user