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

Skip to content

Commit 3619fc5

Browse files
committed
minor update
1 parent 1a708cf commit 3619fc5

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

lib/controller/checks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from lib.core.common import beep
1818
from lib.core.common import getFilteredPageContent
1919
from lib.core.common import getUnicode
20-
from lib.core.common import preparePageForLineComparison
2120
from lib.core.common import randomInt
2221
from lib.core.common import randomStr
2322
from lib.core.common import readInput

lib/core/common.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,14 +1093,6 @@ def sanitizeAsciiString(subject):
10931093
else:
10941094
return None
10951095

1096-
def preparePageForLineComparison(page):
1097-
retVal = page
1098-
1099-
if isinstance(page, basestring):
1100-
return page.replace("><", ">\n<").replace("<br>", "\n").splitlines()
1101-
1102-
return retVal
1103-
11041096
def getFilteredPageContent(page):
11051097
retVal = page
11061098

lib/request/comparison.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import re
1111

1212
from lib.core.common import getFilteredPageContent
13-
from lib.core.common import preparePageForLineComparison
1413
from lib.core.common import wasLastRequestError
1514
from lib.core.data import conf
1615
from lib.core.data import kb
@@ -98,9 +97,9 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
9897
if getSeqMatcher:
9998
return ratio
10099

101-
# In case of an DBMS error page return False
100+
# In case of an DBMS error page return None
102101
elif wasLastRequestError():
103-
return False
102+
return None
104103

105104
elif ratio == 1:
106105
return True

0 commit comments

Comments
 (0)