diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 347316d4e..0ae0e95fb 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -571,7 +571,14 @@ def heuristicCheckSqlInjection(place, parameter): debugMsg = "heuristic checking skipped " debugMsg += "because NULL connection used" logger.debug(debugMsg) - return + return None + + if wasLastRequestDBMSError(): + debugMsg = "heuristic checking skipped " + debugMsg += "because original page content " + debugMsg += "contains DBMS error" + logger.debug(debugMsg) + return None prefix = "" suffix = ""