diff options
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r-- | Lib/CGIHTTPServer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 85e1721..b40edbc 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -148,8 +148,7 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): if ua: env['HTTP_USER_AGENT'] = ua # XXX Other HTTP_* headers - import regsub - decoded_query = regsub.gsub('+', ' ', query) + decoded_query = string.replace(query, '+', ' ') try: os.setuid(nobody) except os.error: |