mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
621f89b492
commit
7a59a2482a
|
@ -1510,17 +1510,26 @@ def extract_text_fields_in_post(post_bytes, boundary: str, debug: bool,
|
||||||
if '"' not in post_str:
|
if '"' not in post_str:
|
||||||
continue
|
continue
|
||||||
post_key = post_str.split('"', 1)[0]
|
post_key = post_str.split('"', 1)[0]
|
||||||
|
print('post_key: ' + post_key)
|
||||||
post_value_str = post_str.split('"', 1)[1]
|
post_value_str = post_str.split('"', 1)[1]
|
||||||
if boundary == '--LYNX':
|
if boundary == '--LYNX':
|
||||||
post_value_str = \
|
post_value_str = \
|
||||||
post_value_str.replace(lynx_content_type, '')
|
post_value_str.replace(lynx_content_type, '')
|
||||||
|
if 'password' not in post_key:
|
||||||
|
print('post_value_str1: ' + post_value_str)
|
||||||
if ';' in post_value_str:
|
if ';' in post_value_str:
|
||||||
if post_key not in fields_with_semicolon_allowed and \
|
if post_key not in fields_with_semicolon_allowed and \
|
||||||
not post_key.startswith('edited'):
|
not post_key.startswith('edited'):
|
||||||
|
print('exit 1')
|
||||||
continue
|
continue
|
||||||
|
if 'password' not in post_key:
|
||||||
|
print('post_value_str2: ' + post_value_str)
|
||||||
if '\r\n' not in post_value_str:
|
if '\r\n' not in post_value_str:
|
||||||
|
print('exit 2')
|
||||||
continue
|
continue
|
||||||
post_lines = post_value_str.split('\r\n')
|
post_lines = post_value_str.split('\r\n')
|
||||||
|
if 'password' not in post_key:
|
||||||
|
print('post_lines: ' + str(post_lines))
|
||||||
post_value = ''
|
post_value = ''
|
||||||
if len(post_lines) > 2:
|
if len(post_lines) > 2:
|
||||||
for line in range(2, len(post_lines)-1):
|
for line in range(2, len(post_lines)-1):
|
||||||
|
|
Loading…
Reference in New Issue