mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-16 02:04:42 +02:00
Merge pull request #1827 from UrBnW/httpdatanl
Allow new line in HTTP data
This commit is contained in:
commit
9cf9e3d165
@ -134,7 +134,7 @@ sub check_options {
|
|||||||
if (defined($options{request}->{$method . '_param'})) {
|
if (defined($options{request}->{$method . '_param'})) {
|
||||||
$options{request}->{$method . '_params'} = {};
|
$options{request}->{$method . '_params'} = {};
|
||||||
foreach (@{$options{request}->{$method . '_param'}}) {
|
foreach (@{$options{request}->{$method . '_param'}}) {
|
||||||
if (/^([^=]+)={0,1}(.*)$/) {
|
if (/^([^=]+)={0,1}(.*)$/s) {
|
||||||
my $key = $1;
|
my $key = $1;
|
||||||
my $value = defined($2) ? $2 : 1;
|
my $value = defined($2) ? $2 : 1;
|
||||||
if (defined($options{request}->{$method . '_params'}->{$key})) {
|
if (defined($options{request}->{$method . '_params'}->{$key})) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user