diff options
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_util.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index 8f44e25f2..88599407c 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -1696,6 +1696,9 @@ exports.join_path = join_path -- ---]]] local function url_encode_string(str) + if str == nil then + return '' + end str = string.gsub(str, "([^%w _%%%-%.~])", function(c) return string.format("%%%02X", string.byte(c)) |