[Cppcms-users] urlencode and base64_urlencode filters do not work...
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2011-01-12 04:02:18
|
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? But I see in wikipp that you don't use any filters for URLs, e.g.: <a href="<% c.diff_url %>"><% gt "Diff to previous" %></a> What's the best (safest) way to handle links? my_var is a std::string. Thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |