Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffd9498

Browse files
committed
Bug fix
1 parent 4800ea7 commit ffd9498

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

waf/sucuri.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
__product__ = "Sucuri WebSite Firewall"
1414

1515
def detect(get_page):
16-
retval = False
16+
retVal = False
1717

1818
for vector in WAF_ATTACK_VECTORS:
1919
page, headers, code = get_page(get=vector)
2020
retVal = code == 403 and re.search(r"Sucuri/Cloudproxy", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
21-
if retval:
21+
if retVal:
2222
break
2323

24-
return retval
24+
return retVal

0 commit comments

Comments
 (0)