aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/assertions
diff options
context:
space:
mode:
authorBrian Lopez <seniorlopez@gmail.com>2012-03-15 14:42:57 -0700
committerBrian Lopez <seniorlopez@gmail.com>2012-03-15 14:42:57 -0700
commitcfcdd334de1085ee376abc45afe4583a38ff5eed (patch)
tree993f112abf4be6ae412619c61a8eb95dedfa0059 /actionpack/lib/action_dispatch/testing/assertions
parente6c95fe3915bdc1eb1fffd5e508003f0d5f5ad78 (diff)
downloadrails-cfcdd334de1085ee376abc45afe4583a38ff5eed.tar.gz
rails-cfcdd334de1085ee376abc45afe4583a38ff5eed.tar.bz2
rails-cfcdd334de1085ee376abc45afe4583a38ff5eed.zip
strip null bytes from Location header as well
add tests for stripping \r\n chars since that's already happening
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb
index 094cfbfc76..a5e7a8c715 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/response.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -83,7 +83,7 @@ module ActionDispatch
refer
else
@controller.url_for(fragment)
- end.gsub(/[\r\n]/, '')
+ end.gsub(/[\0\r\n]/, '')
end
end
end