rails autoescapes in the link_to

This commit is contained in:
zhitomirskiyi 2011-01-13 17:16:37 -08:00
parent 27162e59b8
commit 2c58630995
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@
%params
#publisher_textarea_wrapper
%ul#photodropzone
= status.text_area :message, :rows => 2, :value => params[:prefill]
= status.text_area :message, :rows => 2, :value => h(params[:prefill])
- for aspect_id in @aspect_ids
= hidden_field_tag 'aspect_ids[]', aspect_id.to_s

View file

@ -7,5 +7,5 @@
= link_to t('.reshare'), "#"
%ul.reshare_box
= aspect_links(aspects, :prefill => CGI::escape(post.message))
= aspect_links(aspects, :prefill => post.message)