[Zope] Quoting

2000-10-10 Thread Chris Withers
Dieter Maurer wrote: Note, that probably Zope user names may contain characters not allowed in Cookie values. I wonder how hard it would be to implement the following: dtml-var something cookie_quote Quote all characters not allowed in a cookie dtml-var somethinh id_quote Quote all

RE: [Zope] Quoting

2000-10-10 Thread Seb Bacon
dtml-var something cookie_quote Quote all characters not allowed in a cookie wouldn't dtml-var something url_quote do the job? That reminds me, it's silly that there's not dtml-something url_unquote, so I patched my zope to provide it. I was wondering if there's a mechanism for getting this

Re: [Zope] Quoting

2000-10-10 Thread Chris Withers
Seb Bacon wrote: dtml-var something cookie_quote Quote all characters not allowed in a cookie wouldn't dtml-var something url_quote do the job? Dunno... Dieter? That reminds me, it's silly that there's not dtml-something url_unquote, so I patched my zope to provide it. I was

Re: [Zope] Quoting

2000-10-10 Thread Dieter Maurer
Chris Withers writes: Seb Bacon wrote: dtml-var something cookie_quote Quote all characters not allowed in a cookie wouldn't dtml-var something url_quote do the job? Dunno... Dieter? I reread the cookie spec: in cookie values forbidden are: semi-colon, comma and