Permalink
Browse files

Fixed bug in HTTP handler that can throw exceptions while parsing Coo…

…kies.
  • Loading branch information...
chokepoint committed Apr 5, 2017
1 parent 65b15a9 commit 01f530700e21fd8d3eb7381864459dea85ba44fb
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/common/http.py
View
@@ -91,7 +91,7 @@ def do_GET(self):
for part in parts:
if "SESSIONID" in part:
# extract the sessionID value
- name, sessionID = part.split("=")
+ name, sessionID = part.split("=", 1)
# fire off an event for this GET (for logging)
dispatcher.send("[*] "+resource+" requested from "+str(sessionID)+" at "+clientIP, sender="HttpHandler")
@@ -119,7 +119,7 @@ def do_POST(self):
for part in parts:
if "SESSIONID" in part:
# extract the sessionID value
- name, sessionID = part.split("=")
+ name, sessionID = part.split("=", 1)
# fire off an event for this POST (for logging)
dispatcher.send("[*] Post to "+resource+" from "+str(sessionID)+" at "+clientIP, sender="HttpHandler")

0 comments on commit 01f5307

Please sign in to comment.