mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Fixing ancient bug (introduced with #6c80f29) - that removes original value when --prefix used
This commit is contained in:
parent
90ad914c1e
commit
7c1cff6749
|
@ -124,11 +124,8 @@ class Agent(object):
|
||||||
if header.upper() == HTTP_HEADER.AUTHORIZATION.upper():
|
if header.upper() == HTTP_HEADER.AUTHORIZATION.upper():
|
||||||
origValue = origValue.split(' ')[-1].split(':')[-1]
|
origValue = origValue.split(' ')[-1].split(':')[-1]
|
||||||
|
|
||||||
if conf.prefix:
|
|
||||||
value = origValue
|
|
||||||
|
|
||||||
if value is None:
|
if value is None:
|
||||||
if where == PAYLOAD.WHERE.ORIGINAL:
|
if where == PAYLOAD.WHERE.ORIGINAL or conf.prefix:
|
||||||
value = origValue
|
value = origValue
|
||||||
elif where == PAYLOAD.WHERE.NEGATIVE:
|
elif where == PAYLOAD.WHERE.NEGATIVE:
|
||||||
if conf.invalidLogical:
|
if conf.invalidLogical:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user