Skip to content

Commit e3351a0

Browse files
committed
confirm that map is regular map
1 parent 6c0da5f commit e3351a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/sentry/plug.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ defmodule Sentry.Plug do
176176
@scrubbed_value
177177
is_binary(value) && Regex.match?(@credit_card_regex, value) ->
178178
@scrubbed_value
179-
is_map(value) -> scrub_map(value)
180-
true -> value
179+
is_map(value) && !Map.has_key?(value, :__struct__) ->
180+
scrub_map(value)
181+
true ->
182+
value
181183
end
182184

183185
{key, value}

0 commit comments

Comments
 (0)