Skip to content
Permalink
Browse files

Use Base.encode32 when generating cookie to avoid unsafe chars, closes

  • Loading branch information...
josevalim committed Sep 6, 2019
1 parent c443cde commit 92af3fdf0f3c821a91d6b18f21f470e2ed527964
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mix/lib/mix/release.ex
@@ -428,7 +428,7 @@ defmodule Mix.Release do
end
end

defp random_cookie, do: Base.url_encode64(:crypto.strong_rand_bytes(40))
defp random_cookie, do: Base.encode32(:crypto.strong_rand_bytes(32))

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

0 comments on commit 92af3fd

Please sign in to comment.
You can’t perform that action at this time.