From 5ebd5d935c2e2f1db5bda9be60f633f6a6257641 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 9 Nov 2010 22:49:31 +0000 Subject: [PATCH] another name change --- lib/core/settings.py | 2 +- lib/request/comparison.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 428980bab..bd9fb6d89 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -22,7 +22,7 @@ DESCRIPTION = "automatic SQL injection and database takeover tool" SITE = "http://sqlmap.sourceforge.net" # minimum distance of ratio from conf.matchRatio to result in True -TOLERANCE = 0.05 +DIFF_TOLERANCE = 0.05 # sqlmap logger logging.addLevelName(9, "PAYLOAD") diff --git a/lib/request/comparison.py b/lib/request/comparison.py index 0a6f60c39..f672fb6a7 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -15,7 +15,7 @@ from lib.core.common import wasLastRequestError from lib.core.data import conf from lib.core.data import kb from lib.core.data import logger -from lib.core.settings import TOLERANCE +from lib.core.settings import DIFF_TOLERANCE def comparison(page, headers=None, getSeqMatcher=False, pageLength=None): if page is None and pageLength is None: @@ -116,4 +116,4 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None): # If the url is not stable it returns sequence matcher between the # first untouched HTTP response page content and this content else: - return (ratio - conf.matchRatio) > TOLERANCE + return (ratio - conf.matchRatio) > DIFF_TOLERANCE