Commit e675dba1 authored by 's avatar

Fixed interpretation of enviroment vars to account for an oddity

that occurs under Netscape servers running in SSL mode (some
cruft value appears to come in with the environment).
parent 6fa6ff2b
......@@ -261,10 +261,10 @@ class PCGIPublisher:
env = {}
for i in filter(None, split(join(buff,''),'\000')):
e = split(i,'=')
if len(e) > 2:
if len(e) >= 2:
env[e[0]] = join(e[1:],'=')
else:
env[e[0]] = e[1]
env[e[0]]=''
size = atoi(conn.recv(10))
if size > 1048576:
### write large upload data to a file ###
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment