소스 검색

fix #2031

Sanitize the in-band error message from REHASH
tags/v2.12.0-rc1
Shivaram Lingamneni 1 년 전
부모
커밋
16e214e4fb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      irc/handlers.go

+ 1
- 1
irc/handlers.go 파일 보기

@@ -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…
취소
저장