Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stamparm committed Jul 12, 2015
1 parent a20da7a commit 4800ea7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waf/edgecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
__product__ = "EdgeCast WAF (Verizon)"

def detect(get_page):
retval = False
retVal = False

for vector in WAF_ATTACK_VECTORS:
page, headers, code = get_page(get=vector)
retVal = code == 400 and re.search(r"\AECDF", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
if retval:
if retVal:
break

return retval
return retVal

0 comments on commit 4800ea7

Please sign in to comment.