Skip to content

Commit

Permalink
Merge pull request #1963 from digitallyinduced/NewSessionSecret-remov…
Browse files Browse the repository at this point in the history
…e-percentage-symbol

Remove `%` from sessionSecret
  • Loading branch information
mpscholten authored May 15, 2024
2 parents 7fea884 + 4113176 commit d391ccb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exe/IHP/CLI/NewSessionSecret.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ main :: IO ()
main = withUtf8 do
(string, _) <- ClientSession.randomKey
let encoded = Base64.encode string
ByteString.putStr encoded

-- Create a ByteString from a newline character.
let newline = Char8.pack "\n"
-- Append newline to encoded output and print, so it won't print `%` as a suffix on certain terminals.
ByteString.putStr (ByteString.append encoded newline)

0 comments on commit d391ccb

Please sign in to comment.