[Zope] Quoting
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 characters not allowed in a Zope 2.2 id (this one could be really handy ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Quoting
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 kind of simple tweak into the source tree? seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Quoting
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 wondering if there's a mechanism for getting this kind of simple tweak into the source tree? Yup, the collecor: http://classic.zope.org:8080/Collector/ Submit it as a 'Feature Request w/patch' cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Quoting
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 white space These are not the characters handled by "url_quote". That reminds me, it's silly that there's not dtml-something url_unquote, so I patched my zope to provide it You, usually, will not need an "url_unquote". You use "url_quote" when you construct part of an URL. This URL will already have been decoded when you get it back in Zope (i.e. the unquote is done automatically for you). Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )