[mod_python] 2.7.8

Andre Reitz reitz at inworks.de
Sun Apr 21 04:21:05 EST 2002


On Fri, 19 Apr 2002 14:42:58 -0400 (EDT)
"Gregory (Grisha) Trubetskoy" <grisha at modpython.org> wrote:

> 
> Version 2.7.8 is out there. It addresses the 404 issue that was introduced
> in 2.7.7 as a side effect of fixing the security flaw in the publisher.
> 

Hy,

You forgot again to Fix the following Bug,
This is a Very Big BOBO!!!!!:


def setup_cgi(req):
    """
    Replace sys.stdin and stdout with an objects that read/write to
    the socket, as well as substitute the os.environ.
    Returns (environ, stdin, stdout) which you must save and then use
    with restore_nocgi().
    """

    # save env
#    env = os.environ.copy()
    originalenv = os.environ.copy()   <<<<<<<<<<<<<=====
    
    si = sys.stdin
    so = sys.stdout

    env = build_cgi_env(req)
 
    for k in env.keys():
        os.environ[k] = env[k]

    sys.stdout = CGIStdout(req)
    sys.stdin = CGIStdin(req)

    sys.argv = [] # keeps cgi.py happy

#    return env, si, so
    return originalenv, si, so <<<<<<<<======
        



Will You release Version 2.7.9 TOMORROW?????
:)

Greetings, Andre'



> Grisha
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python


-- 
_____________________________________________
inworks GmbH            Andre Reitz		
Magirusstrasse 44	Tel. 0731/93 80 7-21
89077 Ulm		http://www.inworks.de




More information about the Mod_python mailing list