Skip to content

Commit 7b09216

Browse files
author
Richard Jones
committed
index args URL generation broken in .10 [SF#1096027]
1 parent 2897008 commit 7b09216

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGES.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ Fixed:
5959
- removed safeget() from the API (sf bug 994750)
6060
- demo tracker is always set up on localhost (sf bug 1049101)
6161

62+
2004-10-06 0.7.11
63+
Fixed:
64+
- index args URL generation broken in .10 (sf bug 1096027)
65+
6266

63-
2004-10-?? 0.7.10
67+
2004-10-04 0.7.10
6468
Fixed:
6569
- reset ID counters if the database is cleared (thanks William)
6670
- apply IE caching "fix" to automatically serve up all pages expired

roundup/cgi/templating.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,15 +2073,16 @@ def indexargs_url(self, url, args):
20732073

20742074
# finally, the remainder of the filter args in the request
20752075
props = self.client.db.getclass(self.classname).getprops()
2076+
q = urllib.quote
20762077
for k,v in self.filterspec.items():
20772078
if not args.has_key(k):
20782079
if type(v) == type([]):
20792080
if isinstance(props[k], hyperdb.String):
2080-
l.append(s%(k, ' '.join(v)))
2081+
l.append('%s=%s'%(k, '%20'.join([q(i) for i in v])))
20812082
else:
2082-
l.append(s%(k, ','.join(v)))
2083+
l.append('%s=%s'%(k, ','.join([q(i) for i in v])))
20832084
else:
2084-
l.append('%s=%s'%(k, v))
2085+
l.append('%s=%s'%(k, q(v)))
20852086
return '%s?%s'%(url, '&'.join(l))
20862087
indexargs_href = indexargs_url
20872088

0 commit comments

Comments
 (0)