[Git][noosfero/noosfero][master] 2 commits: should not escape html code of terms of use in account registration

Leandro Nunes gitlab at mg.gitlab.com
Mon Aug 1 13:06:58 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
6518bcdd by Leandro Nunes dos Santos at 2016-08-01T13:05:45-03:00
should not escape html code of terms of use in account registration

- - - - -
1d932cf7 by Leandro Nunes dos Santos at 2016-08-01T13:06:04-03:00
Merge branch 'master' of gitlab.com:noosfero/noosfero

- - - - -


1 changed file:

- app/views/account/_signup_form.html.erb


Changes:

=====================================
app/views/account/_signup_form.html.erb
=====================================
--- a/app/views/account/_signup_form.html.erb
+++ b/app/views/account/_signup_form.html.erb
@@ -113,7 +113,7 @@
 
   <% unless @terms_of_use.blank? %>
     <div id='terms-of-use-box' class='formfieldline'>
-      <%= labelled_check_box(_('I accept the %s') % link_to(_('terms of use'), {:controller => 'home', :action => 'terms'}, :target => '_blank'), 'user[terms_accepted]') %>
+      <%= labelled_check_box(_('I accept the %s').html_safe % link_to(_('terms of use'), {:controller => 'home', :action => 'terms'}, :target => '_blank'), 'user[terms_accepted]') %>
     </div>
   <% end %>
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/e1cb8ef004d09c9bdf8a0f01b9abab5b7f6b8494...1d932cf796ed547316922424402672de2ecd49ab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160801/2fef5d69/attachment.html>


More information about the Noosfero-dev mailing list