mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Fix for stalling in retrieving international letters (--technique=B)
This commit is contained in:
@@ -54,6 +54,9 @@ class xrange(object):
|
|||||||
def _len(self):
|
def _len(self):
|
||||||
return max(0, int((self.stop - self.start) / self.step))
|
return max(0, int((self.stop - self.start) / self.step))
|
||||||
|
|
||||||
|
def __contains__(self, value):
|
||||||
|
return (self.start <= value < self.stop) and (value - self.start) % self.step == 0
|
||||||
|
|
||||||
def __getitem__(self, index):
|
def __getitem__(self, index):
|
||||||
if isinstance(index, slice):
|
if isinstance(index, slice):
|
||||||
start, stop, step = index.indices(self._len())
|
start, stop, step = index.indices(self._len())
|
||||||
|
|||||||
Reference in New Issue
Block a user