--- /home/mailman/src/moin-1.2.1/MoinMoin/httpdmain.py 2004-01-30 16:29:55.000000000 -0500 +++ httpdmain.py 2004-04-15 10:59:13.000000000 -0400 @@ -72,11 +72,15 @@ self.doRequest() def do_GET(self): - dummy, extension = os.path.splitext(self.path) # XXX FIXME it might be a bit too simple to just use the extension to decide if # we should call the static server or get a wiki page. As long as wiki page URLs # translate ".png" -> "_2Epng" (if anybody makes such a strange page), this is no # problem, though. + path = self.path + if '?' in path: + index = path.find('?') + path = path[:index] + dummy, extension = os.path.splitext(path) if extension.lower() in allowed_extensions: self.expires = 7*24*3600 # 1 week expiry for png, css SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)