mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +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,
|
||||
no_quit => 1
|
||||
);
|
||||
if ($stdout =~ /^Source\s*:\s+(\S+)/mi) {
|
||||
if ($stdout =~ /^Source[\s\xA0]*:\s+(\S+)/mi) {
|
||||
return $1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user