[Python-checkins] r42030 - in python/trunk: Lib/SimpleHTTPServer.py Misc/NEWS
georg.brandl
python-checkins at python.org
Fri Jan 13 18:05:58 CET 2006
Author: georg.brandl
Date: Fri Jan 13 18:05:56 2006
New Revision: 42030
Modified:
python/trunk/Lib/SimpleHTTPServer.py
python/trunk/Misc/NEWS
Log:
Bug #1394565: SimpleHTTPServer now doesn't choke on query paramters
any more.
Modified: python/trunk/Lib/SimpleHTTPServer.py
==============================================================================
--- python/trunk/Lib/SimpleHTTPServer.py (original)
+++ python/trunk/Lib/SimpleHTTPServer.py Fri Jan 13 18:05:56 2006
@@ -14,6 +14,7 @@
import posixpath
import BaseHTTPServer
import urllib
+import urlparse
import cgi
import shutil
import mimetypes
@@ -136,6 +137,8 @@
probably be diagnosed.)
"""
+ # abandon query parameters
+ path = urlparse.urlparse(path)[2]
path = posixpath.normpath(urllib.unquote(path))
words = path.split('/')
words = filter(None, words)
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri Jan 13 18:05:56 2006
@@ -335,6 +335,9 @@
Library
-------
+- Bug #1394565: SimpleHTTPServer now doesn't choke on query paramters
+ any more.
+
- Bug #1403410: The warnings module now doesn't get confused
when it can't find out the module name it generates a warning for.
More information about the Python-checkins
mailing list