From d1f6e166877e0d0bbe85695a4dce5a28b764f696 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 7 Jun 2022 15:06:40 +0200 Subject: [PATCH] (plugin) os::windows::local - harden regexp source (again) (#3719) --- centreon-plugins/os/windows/local/mode/ntp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/os/windows/local/mode/ntp.pm b/centreon-plugins/os/windows/local/mode/ntp.pm index fb1c1c868..723198195 100644 --- a/centreon-plugins/os/windows/local/mode/ntp.pm +++ b/centreon-plugins/os/windows/local/mode/ntp.pm @@ -72,7 +72,7 @@ sub check_ntp_query { command_options => undef, no_quit => 1 ); - if ($stdout =~ /^Source[\s\xA0]*:\s+(\S+)/mi) { + if ($stdout =~ /^Source.*?:\s+(\S+)/mi) { return $1; } }