Skip to content

Commit a789d7a

Browse files
committed
add missing aux function
1 parent 641ea14 commit a789d7a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

lua/ipax.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,18 @@ function _M.check_multivalued_user_claim(claim_values, check_item)
279279
return false
280280
end
281281

282+
local function split(input, separator)
283+
ngx.log(ngx.DEBUG, "Starting")
284+
if separator == nil then
285+
separator = "%s"
286+
end
287+
local t={}
288+
for str in string.gmatch(input, "([^" .. separator .. "]+)") do
289+
table.insert(t, str)
290+
end
291+
return t
292+
end
293+
282294
function _M.get_ldap_object_names_from_dns(object_dns)
283295
ngx.log(ngx.DEBUG, "Starting")
284296
local object_names={}

0 commit comments

Comments
 (0)