Skip to content

Commit 9eee648

Browse files
Minor bug fix
1 parent d474fc6 commit 9eee648

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

xssless.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,14 @@ def parse_request(input_var, url):
132132
body_var_List = body_data.split("&")
133133
body_var_List = filter(None, body_var_List)
134134
for item in body_var_List:
135-
key, value = item.split("=", 1)
136-
bodyDict = {}
137-
bodyDict['Key'] = key
138-
bodyDict['Value'] = value
139-
bodyList.append(bodyDict)
135+
try:
136+
key, value = item.split("=", 1)
137+
bodyDict = {}
138+
bodyDict['Key'] = key
139+
bodyDict['Value'] = value
140+
bodyList.append(bodyDict)
141+
except ValueError:
142+
pass
140143

141144
# Returned dict, chocked full of useful information formatted nicely for your convienience!
142145
returnDict = {}

0 commit comments

Comments
 (0)