WebStack

patches/Webware/WebKit/CGIAdapter.py.diff

740:a1e9b4cb4e61
2007-11-17 paulb [project @ 2007-11-17 02:05:17 by paulb] Introduced HTML escaping in the output. Changed the field names for the application and identities, fixing login failures after initial unsuccessful attempts.
     1 --- Adapters/CGIAdapter.py	2005-08-25 01:09:02.759432184 +0200     2 +++ Adapters/CGIAdapter.py	2005-08-25 01:09:05.778973144 +0200     3 @@ -48,7 +48,7 @@     4  				msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)     5       6  			myInput = ''     7 -			if os.environ.has_key('CONTENT_LENGTH'):     8 +			if os.environ.has_key('CONTENT_LENGTH') and os.environ['CONTENT_LENGTH']:     9  				length = int(os.environ['CONTENT_LENGTH'])    10  				myInput = myInput + sys.stdin.read(length)    11