mirror of
https://github.com/ergochat/ergo.git
synced 2025-11-22 09:07:23 +01:00
Merge pull request #2295 from slingamn/shivaram_pushreject
fix validation of web push URLs
This commit is contained in:
commit
efc1627d23
@ -3934,6 +3934,7 @@ func webpushHandler(server *Server, client *Client, msg ircmsg.Message, rb *Resp
|
|||||||
|
|
||||||
if err := webpush.SanityCheckWebPushEndpoint(endpoint); err != nil {
|
if err := webpush.SanityCheckWebPushEndpoint(endpoint); err != nil {
|
||||||
rb.Add(nil, server.name, "FAIL", "WEBPUSH", "INVALID_PARAMS", subcommand, client.t("Invalid web push URL"))
|
rb.Add(nil, server.name, "FAIL", "WEBPUSH", "INVALID_PARAMS", subcommand, client.t("Invalid web push URL"))
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
switch subcommand {
|
switch subcommand {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user