Diff

mod_sasl2_bind2/mod_sasl2_bind2.lua @ 5032:71a84474fcfb

mod_sasl2_bind2: Use correct method to get text
author Matthew Wild <mwild1@gmail.com>
date Sat, 03 Sep 2022 17:45:03 +0100
parent 5031:62cdd8170563
child 5033:9afd98178011
line wrap: on
line diff
--- 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)));