Commit f8d325e7 authored by 's avatar

*** empty log message ***

parent 2940ae2f
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
__doc__="""Python Object Publisher -- Publish Python objects on web servers __doc__="""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.120 1999/01/25 16:42:32 brian Exp $""" $Id: Publish.py,v 1.121 1999/01/25 20:48:46 brian Exp $"""
__version__='$Revision: 1.120 $'[11:-2] __version__='$Revision: 1.121 $'[11:-2]
import sys, os, string, cgi, regex import sys, os, string, cgi, regex
from string import lower, atoi, rfind, split, strip, join, upper, find from string import lower, atoi, rfind, split, strip, join, upper, find
...@@ -145,6 +145,8 @@ class ModulePublisher: ...@@ -145,6 +145,8 @@ class ModulePublisher:
def __init__(self, def __init__(self,
stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr,
environ=os.environ): environ=os.environ):
environ=sane_environment(environ)
fp=None fp=None
try: try:
if environ['REQUEST_METHOD'] != 'GET': fp=stdin if environ['REQUEST_METHOD'] != 'GET': fp=stdin
......
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