From 0dc2237360cd8e0d7a501c3e134ed5a3ad0770ff Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 26 Mar 2019 09:29:08 +0100 Subject: [PATCH] Fix default protocol http expected-content --- apps/protocols/http/mode/expectedcontent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/protocols/http/mode/expectedcontent.pm b/apps/protocols/http/mode/expectedcontent.pm index 2f0b7e363..7841ce76c 100644 --- a/apps/protocols/http/mode/expectedcontent.pm +++ b/apps/protocols/http/mode/expectedcontent.pm @@ -150,7 +150,7 @@ sub check_options { # Legacy compat if (defined($self->{option_results}->{expected_string}) && $self->{option_results}->{expected_string} ne '') { - $self->{option_results}->{critical_content} = "%{content} =~ /$self->{option_results}->{expected_string}/mi"; + $self->{option_results}->{critical_content} = "%{content} !~ /$self->{option_results}->{expected_string}/mi"; } $self->{http}->set_options(%{$self->{option_results}});