mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
(plugin) os::windows::local - harden regexp source (#3660)
This commit is contained in:
parent
52c769f146
commit
b631265870
@ -72,7 +72,7 @@ sub check_ntp_query {
|
|||||||
command_options => undef,
|
command_options => undef,
|
||||||
no_quit => 1
|
no_quit => 1
|
||||||
);
|
);
|
||||||
if ($stdout =~ /^Source\s*:\s+(\S+)/mi) {
|
if ($stdout =~ /^Source[\s\xA0]*:\s+(\S+)/mi) {
|
||||||
return $1;
|
return $1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user