mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-21 15:52:26 +01:00
fix for a bug reported by BugTrace (IndexError: list index out of range)
This commit is contained in:
parent
bfc9378542
commit
c471b815cc
1 changed files with 1 additions and 1 deletions
|
|
@ -946,7 +946,7 @@ def __setHTTPUserAgent():
|
|||
if __count == 1:
|
||||
__userAgent = kb.userAgents[0]
|
||||
else:
|
||||
__userAgent = kb.userAgents[randomRange(stop=__count)]
|
||||
__userAgent = kb.userAgents[randomRange(stop=__count-1)]
|
||||
|
||||
__userAgent = sanitizeStr(__userAgent)
|
||||
conf.httpHeaders.append(("User-Agent", __userAgent))
|
||||
|
|
|
|||
Loading…
Reference in a new issue