Quellcode durchsuchen

fix #2031

Sanitize the in-band error message from REHASH
tags/v2.12.0-rc1
Shivaram Lingamneni vor 1 Jahr
Ursprung
Commit
16e214e4fb
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      irc/handlers.go

+ 1
- 1
irc/handlers.go Datei anzeigen

2887
 		// TODO all operators should get a notice of some kind here
2887
 		// TODO all operators should get a notice of some kind here
2888
 		rb.Notice(client.t("Rehash complete"))
2888
 		rb.Notice(client.t("Rehash complete"))
2889
 	} else {
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
 	return false
2892
 	return false
2893
 }
2893
 }

Laden…
Abbrechen
Speichern