(plugin) os::windows::local - harden regexp source (#3660)

This commit is contained in:
qgarnier 2022-05-13 14:34:49 +02:00 committed by GitHub
parent 52c769f146
commit b631265870

View File

@ -72,7 +72,7 @@ sub check_ntp_query {
command_options => undef,
no_quit => 1
);
if ($stdout =~ /^Source\s*:\s+(\S+)/mi) {
if ($stdout =~ /^Source[\s\xA0]*:\s+(\S+)/mi) {
return $1;
}
}