Charakterbewegungen hinzugefügt, Deko hinzugefügt, Kochrezepte angepasst
This commit is contained in:
parent
95945c0306
commit
a0c893ca0b
1124 changed files with 64294 additions and 763 deletions
10
mods/futil/util/http.lua
Normal file
10
mods/futil/util/http.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
local function char_to_hex(c)
|
||||
return string.format("%%%02X", string.byte(c))
|
||||
end
|
||||
|
||||
function futil.urlencode(text)
|
||||
text = text:gsub("\n", "\r\n")
|
||||
text = text:gsub("([^0-9a-zA-Z !'()*._~-])", char_to_hex)
|
||||
text = text:gsub(" ", "+")
|
||||
return text
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue