Skip to content

Commit 92af3fd

Browse files
author
José Valim
committed
Use Base.encode32 when generating cookie to avoid unsafe chars, closes #9328
1 parent c443cde commit 92af3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mix/lib/mix/release.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ defmodule Mix.Release do
428428
end
429429
end
430430

431-
defp random_cookie, do: Base.url_encode64(:crypto.strong_rand_bytes(40))
431+
defp random_cookie, do: Base.encode32(:crypto.strong_rand_bytes(32))
432432

433433
@doc """
434434
Makes the start_erl.data file with the

0 commit comments

Comments
 (0)