3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-10-27 20:07:33 +01:00

Merge pull request #2295 from slingamn/shivaram_pushreject

fix validation of web push URLs
This commit is contained in:
Shivaram Lingamneni 2025-10-26 00:58:52 -04:00 committed by GitHub
commit efc1627d23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {