projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_tls: Fix ssl option fallback to a "parent" host if current host does not have...
[prosody.git]
/
util
/
hex.lua
diff --git
a/util/hex.lua
b/util/hex.lua
index e41f48633de6faafbc4c94311c641a5fb1e14108..4cc28d33386f1f42dbe7d7cd1216e37757943e6c 100644
(file)
--- a/
util/hex.lua
+++ b/
util/hex.lua
@@
-1,6
+1,7
@@
local s_char = string.char;
local s_format = string.format;
local s_gsub = string.gsub;
local s_char = string.char;
local s_format = string.format;
local s_gsub = string.gsub;
+local s_lower = string.lower;
local char_to_hex = {};
local hex_to_char = {};
local char_to_hex = {};
local hex_to_char = {};
@@
-19,7
+20,7
@@
local function to(s)
end
local function from(s)
end
local function from(s)
- return (s_gsub(s
, "..
", hex_to_char));
+ return (s_gsub(s
_lower(s), "%X*(%x%x)%X*
", hex_to_char));
end
return { to = to, from = from }
end
return { to = to, from = from }