🐶 Sync 2026-06-03 21:58:23

This commit is contained in:
github-actions[bot] committed 2026-06-03 21:58:23 +08:00
1 parent 4a70c88048
commit c9c56d7f6e
33 files changed
+485 -162

No files matched your search

@@ -154,12 +154,14 @@ function base64Encode(text)
end
function UrlEncode(szText)
if type(szText) ~= "string" then return "" end
return szText:gsub("([^%w%-_%.%~])", function(c)
return string.format("%%%02X", string.byte(c))
end)
end
function UrlDecode(szText)
if type(szText) ~= "string" then return "" end
return szText and szText:gsub("%+", " "):gsub("%%(%x%x)", function(h)
return string.char(tonumber(h, 16))
end) or nil