Skip to content

Commit 6e7db8b

Browse files
committed
1 parent 0ba89fb commit 6e7db8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/sanbase/dashboard/dashboard_query.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ defmodule Sanbase.Dashboard.Query do
6565
compressed_rows
6666
|> Base.decode64!()
6767
|> :zlib.gunzip()
68-
|> :erlang.binary_to_term()
68+
|> Plug.Crypto.non_executable_binary_to_term([:safe])
6969
end
7070

7171
def valid_sql?(args) do

lib/sanbase/queries/executor/result.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ defmodule Sanbase.Queries.Executor.Result do
9898
compressed_rows
9999
|> Base.decode64!()
100100
|> :zlib.gunzip()
101-
|> :erlang.binary_to_term()
101+
|> Plug.Crypto.non_executable_binary_to_term([:safe])
102102
end
103103
end

0 commit comments

Comments
 (0)