mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
Works in Finnish now! Who would say...
This commit is contained in:
parent
5e09779c7f
commit
71f483496d
@ -55,9 +55,9 @@ local segment_set = make_set {
|
||||
}
|
||||
|
||||
local function protect_segment(s)
|
||||
return string.gsub(s, "(%W)", function (c)
|
||||
return string.gsub(s, "([^A-Za-z0-9_])", function (c)
|
||||
if segment_set[c] then return c
|
||||
else return escape(c) end
|
||||
else return string.format("%%%02x", string.byte(c)) end
|
||||
end)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user