durusmail: quixote-users: [PATCH] to medusa_http.py (Was Bug in form2.form? NOPE!)
Bug in form2.form?
2004-10-03
Bug in form2.form? NOPE!
2004-10-04
[PATCH] to medusa_http.py (Was Bug in form2.form? NOPE!)
2004-10-04
2004-10-04
2004-10-04
2004-10-04
[PATCH] to medusa_http.py (Was Bug in form2.form? NOPE!)
Jason Sibre
2004-10-04
Quoting Jason Sibre :
> I'll look into the other places that could be changed to
> fix this in medusa or the Qx handler for medusa.
>
> Jason

This seems to work for me.  Does anyone else who uses medusa care to try this
out and make sure it doesn't break anything on their apps?

Jason

--- /home/jsibre/downloads/Quixote-1.0/server/medusa_http.py    2004-04-08
09:22:23.000000000 -0500
+++ /home/jsibre/downloads/quixote/server/medusa_http.py        2004-10-04
09:58:13.000000000 -0500
@@ -10,7 +10,7 @@
 # A simple HTTP server, using Medusa, that publishes a Quixote application.

 import sys
-import asyncore, rfc822, socket
+import asyncore, rfc822, socket, urllib
 from StringIO import StringIO
 from medusa import http_server, xmlrpc_handler
 from quixote.http_response import Stream
@@ -64,6 +64,7 @@
             path = request.uri
             query_string = ''

+        path = urllib.unquote(path)
         server_port = str(self.server.port),
         http_host = msg.get("Host")
         if http_host:



reply