mod_sasl2_bind2: Use correct method to get text
authorMatthew Wild <mwild1@gmail.com>
Sat, 03 Sep 2022 17:45:03 +0100
changeset 5036 71a84474fcfb
parent 5035 62cdd8170563
child 5037 9afd98178011
mod_sasl2_bind2: Use correct method to get text
mod_sasl2_bind2/mod_sasl2_bind2.lua
--- a/mod_sasl2_bind2/mod_sasl2_bind2.lua	Sat Sep 03 17:29:25 2022 +0100
+++ b/mod_sasl2_bind2/mod_sasl2_bind2.lua	Sat Sep 03 17:45:03 2022 +0100
@@ -31,7 +31,7 @@
 	local resource;
 
 	local client_id_tag = bind_request:get_child("client-id");
-	local client_id = client_id_tag and client_id_tag:text() or session.client_id;
+	local client_id = client_id_tag and client_id_tag:get_text() or session.client_id;
 	if client_id and client_id ~= "" then
 		local tag = client_id_tag and client_id_tag.attr.tag or "client";
 		resource = ("%s~%s"):format(tag, base64.encode(sha1(client_id):sub(1, 9)));