Skip to content

Commit

Permalink
url quote cgi path values
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Sep 20, 2010
1 parent 67d449d commit 2f2a878
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pep-0444.rst
Expand Up @@ -288,12 +288,15 @@ server.
def run_with_cgi(application):

environ = get_environ()
environ['web3.input'] = sys.stdin
environ['web3.errors'] = sys.stderr
environ['web3.version'] = (1, 0)
environ['web3.multithread'] = False
environ['web3.multiprocess'] = True
environ['web3.run_once'] = True
environ['web3.input'] = sys.stdin
environ['web3.errors'] = sys.stderr
environ['web3.version'] = (1, 0)
environ['web3.multithread'] = False
environ['web3.multiprocess'] = True
environ['web3.run_once'] = True
environ['SCRIPT_NAME'] = url_quote(environ['SCRIPT_NAME'])
environ['PATH_INFO] = url_quote(environ['PATH_INFO'])
environ['web3.path_requoted'] = True

if environ.get('HTTPS', b'off') in (b'on', b'1'):
environ['web3.url_scheme'] = b'https'
Expand Down

0 comments on commit 2f2a878

Please sign in to comment.