[Zope] Formatting Query Strings
Evan Simpson
evan@digicool.com
Wed, 9 Feb 2000 11:18:40 -0600
It automatically *html* quotes. Url-quoting is a swamp. If you have a
query string, you can't just quote the whole URL, or even the whole query
string, since the '?', '&'s, and '='s will get quoted. 'url_quote' works
fine on both the path and query, but 'url_quote_plus' only works on the
query bits. I bundle all this nastiness up in a method which is called like
this:
makeURL(base='', path='/where/am/I?', include_last_query=1,
swearing='&#^&*?')
to produce: /where/am/I%3f/?bits=from+last+query&swearing=%26%23%5e%26%2a%3f
----- Original Message -----
From: Phil Harris <phil.harris@zope.co.uk>
> I though the &dtml-var; format automatically url_quoted strings:
Cheers,
Evan @ digicool