2009-11-28 | Paul Boddie | raw annotate files changeset graph | Reverted local identifier changes in order to restore their URL/URI character. Introduced URL-encoding of identity information for non-ASCII characters, due to limitations in HTML 4. Introduced URL-encoding of the association handle since python-openid (2.0.2) does not like being presented with a handle containing non-ASCII characters. |
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