Skip to content

Commit efc1627

Browse files
authored
Merge pull request #2295 from slingamn/shivaram_pushreject
fix validation of web push URLs
2 parents 92f0698 + 6b8265f commit efc1627

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

irc/handlers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3934,6 +3934,7 @@ func webpushHandler(server *Server, client *Client, msg ircmsg.Message, rb *Resp
39343934

39353935
if err := webpush.SanityCheckWebPushEndpoint(endpoint); err != nil {
39363936
rb.Add(nil, server.name, "FAIL", "WEBPUSH", "INVALID_PARAMS", subcommand, client.t("Invalid web push URL"))
3937+
return false
39373938
}
39383939

39393940
switch subcommand {

0 commit comments

Comments
 (0)