mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-15 19:35:24 +00:00
fix parsing of "challenge" regarding NUL byte
This commit is contained in:
parent
c445176a36
commit
67a864dd70
@ -457,7 +457,7 @@ sub recvchallenge($)
|
||||
if not defined $s;
|
||||
length $s
|
||||
or last;
|
||||
if($s =~ /^\377\377\377\377challenge (.*)$/s)
|
||||
if($s =~ /^\377\377\377\377challenge (.*?)(?:$|\0)/s)
|
||||
{
|
||||
return $1;
|
||||
}
|
||||
|
@ -514,7 +514,7 @@ sub recvchallenge($)
|
||||
if not defined $s;
|
||||
length $s
|
||||
or last;
|
||||
if($s =~ /^\377\377\377\377challenge (.*)$/s)
|
||||
if($s =~ /^\377\377\377\377challenge (.*)(?:$|\0)/s)
|
||||
{
|
||||
return $1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user