mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-09 17:51:33 +00:00
doctest compatibility patch (#3536)
This commit is contained in:
parent
87237c82d3
commit
12602b8a51
3 changed files with 7 additions and 3 deletions
|
|
@ -4900,6 +4900,10 @@ def firstNotNone(*args):
|
|||
def chunkSplitPostData(data):
|
||||
"""
|
||||
Convert POST data to chunked transfer-encoded data (Note: splitting done by SQL keywords)
|
||||
|
||||
>>> random.seed(0)
|
||||
>>> chunkSplitPostData("SELECT username,password FROM users")
|
||||
'5;UAqFz\\r\\nSELEC\\r\\n8;sDK4F\\r\\nT userna\\r\\n3;UMp48\\r\\nme,\\r\\n8;3tT3Q\\r\\npassword\\r\\n4;gAL47\\r\\n FRO\\r\\n5;1qXIa\\r\\nM use\\r\\n2;yZPaE\\r\\nrs\\r\\n0\\r\\n\\r\\n'
|
||||
"""
|
||||
|
||||
length = len(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue