Author: justi9
Date: 2007-10-15 11:12:25 -0400 (Mon, 15 Oct 2007)
New Revision: 1068
Modified:
mgmt/cumin/python/wooly/__init__.py
Log:
We have to use unquote_plus instead of unquote in unmarshal_url_vars
because form-encoded vars produce +'s for spaces, at least in my
firefox.
Modified: mgmt/cumin/python/wooly/__init__.py
===================================================================
--- mgmt/cumin/python/wooly/__init__.py 2007-10-15 14:58:32 UTC (rev 1067)
+++ mgmt/cumin/python/wooly/__init__.py 2007-10-15 15:12:25 UTC (rev 1068)
@@ -1,6 +1,6 @@
import sys, os
from cStringIO import StringIO
-from urllib import quote, unquote
+from urllib import quote, unquote_plus
from copy import copy
from time import clock
from datetime import datetime
@@ -542,7 +542,7 @@
for var in vars:
try:
key, svalue = var.split("=")
- value = unquote(svalue)
+ value = unquote_plus(svalue)
param = self.app.get_parameter(key)
Show replies by date