Skip to content

Commit fe55fcc

Browse files
committed
check binary
1 parent f38d756 commit fe55fcc

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
@@ -145,8 +145,10 @@ defmodule Sentry.Plug do
145145
conn.params
146146
|> Enum.map(fn({key, value}) ->
147147
value = cond do
148-
Enum.member?(@default_scrubbed_param_keys, key) -> @scrubbed_value
149-
Regex.match?(@credit_card_regex, value) -> @scrubbed_value
148+
Enum.member?(@default_scrubbed_param_keys, key) ->
149+
@scrubbed_value
150+
is_binary(value) && Regex.match?(@credit_card_regex, value) ->
151+
@scrubbed_value
150152
true -> value
151153
end
152154

0 commit comments

Comments
 (0)