Skip to content

Commit

Permalink
fix: replace '/' with '-' in base64 encode
Browse files Browse the repository at this point in the history
  • Loading branch information
rainzm committed Oct 7, 2023
1 parent e4d3c4c commit 1e0a270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/image/utils/base64.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local ffi = require("ffi")
local base64 = {}

local b64 = ffi.new("unsigned const char[65]", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
local b64 = ffi.new("unsigned const char[65]", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-")

function base64.encode(str)
---@diagnostic disable-next-line: undefined-global
Expand Down

0 comments on commit 1e0a270

Please sign in to comment.