Re: [Cppcms-users] urlencode and base64_urlencode filters do not work...
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2011-01-12 08:28:49
|
> > Hello, > > Referring to the template filters: > > http://art-blog.no-ip.info/cppcms_ref_v0_99_1/namespacecppcms_1_1filters.html > http://art-blog.no- > ip.info/wikipp/en/page/cppcms_1x_templates_comm#Variable.with.filters > > In my template, all the following filters work as expected: > <% my_var | to_title %> > <% my_var | raw %> > <% my_var | to_upper %> > <% my_var | escape %> > > But if I use one of the two urlencode filters, the application crashes at run > time: > <% my_var | urlencode %> > <% my_var | base64_urlencode %> > > Is their use different? First of all base64_urlencode indeed had a bug, fixed in trunk changeset 1630. Thanks for reporting this! I don't see any issues with urlencode filter seems to work. Also small notice: "escape" is the **default** filter no need to specify it explicitly, if you want to pass the string "as-is" you need to use "raw" filter - which bypasses the escaping. Artyom |