Browse Source

fix #2031

Sanitize the in-band error message from REHASH
tags/v2.12.0-rc1
Shivaram Lingamneni 1 year ago
parent
commit
16e214e4fb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      irc/handlers.go

+ 1
- 1
irc/handlers.go View File

@@ -2887,7 +2887,7 @@ func rehashHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respo
2887 2887
 		// TODO all operators should get a notice of some kind here
2888 2888
 		rb.Notice(client.t("Rehash complete"))
2889 2889
 	} else {
2890
-		rb.Add(nil, server.name, ERR_UNKNOWNERROR, nick, "REHASH", err.Error())
2890
+		rb.Add(nil, server.name, ERR_UNKNOWNERROR, nick, "REHASH", ircutils.SanitizeText(err.Error(), 350))
2891 2891
 	}
2892 2892
 	return false
2893 2893
 }

Loading…
Cancel
Save