Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove unserializable data from the session

  • Loading branch information...
commit fc52ab96b1861ef43f2cde0eeac2443f12f35a11 1 parent fa2f3a1
Joe Ferris authored

Showing 2 changed files with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  lib/hoptoad_notifier/notice.rb
  2. +1 0  test/notice_test.rb
3  lib/hoptoad_notifier/notice.rb
@@ -242,6 +242,9 @@ def clean_params
242 242 clean_unserializable_data_from(:cgi_data)
243 243 filter(cgi_data)
244 244 end
  245 + if session_data
  246 + clean_unserializable_data_from(:session_data)
  247 + end
245 248 end
246 249
247 250 def filter(hash)
1  test/notice_test.rb
@@ -143,6 +143,7 @@ def stub_request(attrs = {})
143 143 should "convert unserializable objects to strings" do
144 144 assert_serializes_hash(:parameters)
145 145 assert_serializes_hash(:cgi_data)
  146 + assert_serializes_hash(:session_data)
146 147 end
147 148
148 149 should "filter parameters" do

0 comments on commit fc52ab9

Please sign in to comment.
Something went wrong with that request. Please try again.