aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-02-04 17:45:43 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-02-04 17:45:43 -0800
commit3062bc70eff68397a00fc652e8eee4ae8089e0a2 (patch)
tree89a09a8093668130ff46de1ef024c2e41f8e3861 /actionpack/test/controller
parent2191aa47acc0a560366c8c09fa9635602cff5f07 (diff)
downloadrails-3062bc70eff68397a00fc652e8eee4ae8089e0a2.tar.gz
rails-3062bc70eff68397a00fc652e8eee4ae8089e0a2.tar.bz2
rails-3062bc70eff68397a00fc652e8eee4ae8089e0a2.zip
HTML-escape csrf meta contents
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/request_forgery_protection_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb
index 77d07d8eeb..c38ffad748 100644
--- a/actionpack/test/controller/request_forgery_protection_test.rb
+++ b/actionpack/test/controller/request_forgery_protection_test.rb
@@ -210,7 +210,7 @@ class RequestForgeryProtectionControllerTest < ActionController::TestCase
@request = ActionController::TestRequest.new
@request.format = :html
@response = ActionController::TestResponse.new
- @token = "cf50faa3fe97702ca1ae"
+ @token = "cf50faa3fe97702ca1a/=?"
ActiveSupport::SecureRandom.stubs(:base64).returns(@token)
ActionController::Base.request_forgery_protection_token = :authenticity_token
@@ -227,7 +227,7 @@ class FreeCookieControllerTest < ActionController::TestCase
@controller = FreeCookieController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
- @token = "cf50faa3fe97702ca1ae"
+ @token = "cf50faa3fe97702ca1a/=?"
ActiveSupport::SecureRandom.stubs(:base64).returns(@token)
end