Skip to content

Commit 7f8d24b

Browse files
author
Richard Jones
committed
merge from 0.7
1 parent 3842ac7 commit 7f8d24b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ Fixed:
6262
- demo tracker is always set up on localhost (sf bug 1049101)
6363

6464

65-
2004-??-?? 0.7.??
65+
2004-??-?? 0.7.12
6666
Fixed:
6767
- handle capitalisation of class names in text hyperlinking (sf bug
6868
1101043)
69+
- quote full-text search text in URL generation
6970

7071

7172
2005-01-06 0.7.11

roundup/cgi/templating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,6 +2038,7 @@ def indexargs_form(self, columns=1, sort=1, group=1, filter=1,
20382038
def indexargs_url(self, url, args):
20392039
''' Embed the current index args in a URL
20402040
'''
2041+
q = urllib.quote
20412042
sc = self.special_char
20422043
l = ['%s=%s'%(k,v) for k,v in args.items()]
20432044

@@ -2065,7 +2066,7 @@ def indexargs_url(self, url, args):
20652066
if self.filter and not specials.has_key('filter'):
20662067
l.append(sc+'filter=%s'%(','.join(self.filter)))
20672068
if self.search_text and not specials.has_key('search_text'):
2068-
l.append(sc+'search_text=%s'%self.search_text)
2069+
l.append(sc+'search_text=%s'%q(self.search_text))
20692070
if not specials.has_key('pagesize'):
20702071
l.append(sc+'pagesize=%s'%self.pagesize)
20712072
if not specials.has_key('startwith'):
@@ -2074,7 +2075,6 @@ def indexargs_url(self, url, args):
20742075
# finally, the remainder of the filter args in the request
20752076
if self.classname and self.filterspec:
20762077
props = self.client.db.getclass(self.classname).getprops()
2077-
q = urllib.quote
20782078
for k,v in self.filterspec.items():
20792079
if not args.has_key(k):
20802080
if type(v) == type([]):

0 commit comments

Comments
 (0)