From e976418d28eaebb5a38a4cc4269e2081dc2d0f71 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 6 Jan 2015 14:58:05 +0100 Subject: [PATCH] Minor patch --- waf/edgecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waf/edgecast.py b/waf/edgecast.py index 1555a05da..0f37f5f3e 100644 --- a/waf/edgecast.py +++ b/waf/edgecast.py @@ -17,7 +17,7 @@ def detect(get_page): for vector in WAF_ATTACK_VECTORS: page, headers, code = get_page(get=vector) - retval = re.search(r"\AECS", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None + retVal = code == 400 and re.search(r"\AECDF", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None if retval: break