mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-19 17:50:09 -08:00
Merge pull request #2295 from slingamn/shivaram_pushreject
fix validation of web push URLs
This commit is contained in:
commit
efc1627d23
1 changed files with 1 additions and 0 deletions
|
|
@ -3934,6 +3934,7 @@ func webpushHandler(server *Server, client *Client, msg ircmsg.Message, rb *Resp
|
|||
|
||||
if err := webpush.SanityCheckWebPushEndpoint(endpoint); err != nil {
|
||||
rb.Add(nil, server.name, "FAIL", "WEBPUSH", "INVALID_PARAMS", subcommand, client.t("Invalid web push URL"))
|
||||
return false
|
||||
}
|
||||
|
||||
switch subcommand {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue