Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 01f5307

Browse files
author
stderr
committed
Fixed bug in HTTP handler that can throw exceptions while parsing Cookies.
1 parent 65b15a9 commit 01f5307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/common/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def do_GET(self):
9191
for part in parts:
9292
if "SESSIONID" in part:
9393
# extract the sessionID value
94-
name, sessionID = part.split("=")
94+
name, sessionID = part.split("=", 1)
9595

9696
# fire off an event for this GET (for logging)
9797
dispatcher.send("[*] "+resource+" requested from "+str(sessionID)+" at "+clientIP, sender="HttpHandler")
@@ -119,7 +119,7 @@ def do_POST(self):
119119
for part in parts:
120120
if "SESSIONID" in part:
121121
# extract the sessionID value
122-
name, sessionID = part.split("=")
122+
name, sessionID = part.split("=", 1)
123123

124124
# fire off an event for this POST (for logging)
125125
dispatcher.send("[*] Post to "+resource+" from "+str(sessionID)+" at "+clientIP, sender="HttpHandler")

0 commit comments

Comments
 (0)