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

Skip to content

Commit 5ebd5d9

Browse files
committed
another name change
1 parent 06f00cf commit 5ebd5d9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SITE = "http://sqlmap.sourceforge.net"
2323

2424
# minimum distance of ratio from conf.matchRatio to result in True
25-
TOLERANCE = 0.05
25+
DIFF_TOLERANCE = 0.05
2626

2727
# sqlmap logger
2828
logging.addLevelName(9, "PAYLOAD")

lib/request/comparison.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from lib.core.data import conf
1616
from lib.core.data import kb
1717
from lib.core.data import logger
18-
from lib.core.settings import TOLERANCE
18+
from lib.core.settings import DIFF_TOLERANCE
1919

2020
def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
2121
if page is None and pageLength is None:
@@ -116,4 +116,4 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
116116
# If the url is not stable it returns sequence matcher between the
117117
# first untouched HTTP response page content and this content
118118
else:
119-
return (ratio - conf.matchRatio) > TOLERANCE
119+
return (ratio - conf.matchRatio) > DIFF_TOLERANCE

0 commit comments

Comments
 (0)