mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
minor optimization
This commit is contained in:
parent
7c1af97852
commit
440b7efe55
18 changed files with 44 additions and 44 deletions
|
|
@ -147,7 +147,7 @@ def __setRequestParams():
|
|||
# No need for url encoding/decoding the user agent
|
||||
conf.parameters[PLACE.UA] = urldecode(headerValue)
|
||||
|
||||
condition = any([not conf.testParameter, intersect(conf.testParameter, USER_AGENT_ALIASES)])
|
||||
condition = any((not conf.testParameter, intersect(conf.testParameter, USER_AGENT_ALIASES)))
|
||||
|
||||
if condition:
|
||||
conf.paramDict[PLACE.UA] = { PLACE.UA: headerValue }
|
||||
|
|
@ -157,7 +157,7 @@ def __setRequestParams():
|
|||
# No need for url encoding/decoding the referer
|
||||
conf.parameters[PLACE.REFERER] = urldecode(headerValue)
|
||||
|
||||
condition = any([not conf.testParameter, intersect(conf.testParameter, REFERER_ALIASES)])
|
||||
condition = any((not conf.testParameter, intersect(conf.testParameter, REFERER_ALIASES)))
|
||||
|
||||
if condition:
|
||||
conf.paramDict[PLACE.REFERER] = { PLACE.REFERER: headerValue }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue