forked from PsychoticNinja/irssi
Make sure two urls aren't thought of as netsplit
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2943 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7c11b314eb
commit
40f2e1caf5
@ -238,6 +238,7 @@ int quitmsg_is_split(const char *msg)
|
|||||||
- no double-dots (".." - probably useless check)
|
- no double-dots (".." - probably useless check)
|
||||||
- hosts/domains can't start or end with a dot
|
- hosts/domains can't start or end with a dot
|
||||||
- the two hosts can't be identical (probably useless check)
|
- the two hosts can't be identical (probably useless check)
|
||||||
|
- can't contain ':' or '/' chars (some servers allow URLs)
|
||||||
*/
|
*/
|
||||||
host1 = msg; host2 = NULL;
|
host1 = msg; host2 = NULL;
|
||||||
prev = '\0'; len = 0; host1_dot = host2_dot = 0;
|
prev = '\0'; len = 0; host1_dot = host2_dot = 0;
|
||||||
@ -264,7 +265,8 @@ int quitmsg_is_split(const char *msg)
|
|||||||
host2_dot = TRUE;
|
host2_dot = TRUE;
|
||||||
else
|
else
|
||||||
host1_dot = TRUE;
|
host1_dot = TRUE;
|
||||||
}
|
} else if (*msg == ':' || *msg == '/')
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
prev = *msg;
|
prev = *msg;
|
||||||
msg++; len++;
|
msg++; len++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user