avoiding annoying "payload 'None' possibly..." in case where payload is not specified

This commit is contained in:
Miroslav Stampar 2011-04-11 15:24:52 +00:00
parent 941daa1645
commit 0ae74f27e4

View File

@ -33,6 +33,9 @@ def checkPayload(payload):
PHPIDS filter rules
"""
if not payload:
return
global rules
detected = False