mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 326523 - Reject blatantly invalid CTCP Ping responses
ChatZilla Only. p=rdmsoft@bugs.rdmsoft.com (Robert Marshall) r=samuel
This commit is contained in:
parent
6d962143fd
commit
c969315f1d
@ -1918,6 +1918,14 @@ function my_netdisconnect (e)
|
||||
CIRCNetwork.prototype.onCTCPReplyPing =
|
||||
function my_replyping (e)
|
||||
{
|
||||
// see bug 326523
|
||||
if (e.CTCPData.length != 13)
|
||||
{
|
||||
this.display(getMsg(MSG_PING_REPLY_INVALID, e.user.unicodeName),
|
||||
"INFO", e.user, "ME!");
|
||||
return;
|
||||
}
|
||||
|
||||
var delay = formatDateOffset((new Date() - new Date(Number(e.CTCPData))) /
|
||||
1000);
|
||||
this.display(getMsg(MSG_PING_REPLY, [e.user.unicodeName, delay]), "INFO",
|
||||
|
@ -1148,8 +1148,9 @@ msg.confirm.disconnect.all = Are you sure you want to disconnect from ALL networ
|
||||
msg.no.connected.nets = You are not connected to any networks.
|
||||
msg.no.reconnectable.nets = There are no networks to reconnect to.
|
||||
|
||||
msg.ping.reply = Ping reply from %S in %S"
|
||||
msg.prefix.response = "%S, your result is,
|
||||
msg.ping.reply = Ping reply from %S in %S.
|
||||
msg.ping.reply.invalid = Malformed ping reply from %S.
|
||||
msg.prefix.response = "%S, your result is,
|
||||
|
||||
msg.topic.changed = "%S has changed the topic to ``%S''
|
||||
msg.topic = Topic for %S is ``%S''
|
||||
|
Loading…
Reference in New Issue
Block a user