aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-09-14 01:35:44 +0200
committerXavier Noria <fxn@hashref.com>2010-09-14 01:35:44 +0200
commit0207bc7cc980e3f1d15fc59f611eff05e2e35035 (patch)
tree1e546402d164bfa2b47da913a60fb3f925b9b70f /actionpack/lib/action_view
parentd8d8334a0be51e8c34876699d9101bf390761f11 (diff)
downloadrails-0207bc7cc980e3f1d15fc59f611eff05e2e35035.tar.gz
rails-0207bc7cc980e3f1d15fc59f611eff05e2e35035.tar.bz2
rails-0207bc7cc980e3f1d15fc59f611eff05e2e35035.zip
get csrf_meta_tag back to the generated layout in deference to existing printed material, chomp also the generated HTML to be faithful to the output before the refactor
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/csrf_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/csrf_helper.rb b/actionpack/lib/action_view/helpers/csrf_helper.rb
index 092855b578..65c8debc76 100644
--- a/actionpack/lib/action_view/helpers/csrf_helper.rb
+++ b/actionpack/lib/action_view/helpers/csrf_helper.rb
@@ -17,7 +17,7 @@ module ActionView
# Note that regular forms generate hidden fields, and that Ajax calls are whitelisted,
# so they do not use these tags.
def csrf_meta_tags
- <<-METAS.strip_heredoc.html_safe if protect_against_forgery?
+ <<-METAS.strip_heredoc.chomp.html_safe if protect_against_forgery?
<meta name="csrf-param" content="#{Rack::Utils.escape_html(request_forgery_protection_token)}"/>
<meta name="csrf-token" content="#{Rack::Utils.escape_html(form_authenticity_token)}"/>
METAS