From ea73b37fe704b9908fde66c75dbb2b7c840713d4 Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Mon, 3 Feb 2020 23:19:53 +0100 Subject: [PATCH] Allow new line in HTTP data --- centreon/plugins/http.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/plugins/http.pm b/centreon/plugins/http.pm index 0c245d42f..7d35bc545 100644 --- a/centreon/plugins/http.pm +++ b/centreon/plugins/http.pm @@ -134,7 +134,7 @@ sub check_options { if (defined($options{request}->{$method . '_param'})) { $options{request}->{$method . '_params'} = {}; foreach (@{$options{request}->{$method . '_param'}}) { - if (/^([^=]+)={0,1}(.*)$/) { + if (/^([^=]+)={0,1}(.*)$/s) { my $key = $1; my $value = defined($2) ? $2 : 1; if (defined($options{request}->{$method . '_params'}->{$key})) {