From 4ad4cd9464ca8c94486d105d7c03ab0f29e6d9e3 Mon Sep 17 00:00:00 2001 From: Honza Petrous <hop@unibase.cz> Date: Thu, 17 Feb 2000 18:59:53 +0100 Subject: [PATCH] Added decoding of UTF8 strings in results (for v3 protocol) Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.14 --- lib/modules/Protocols.pmod/LDAP.pmod/client.pike | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/modules/Protocols.pmod/LDAP.pmod/client.pike b/lib/modules/Protocols.pmod/LDAP.pmod/client.pike index 7ed7d0af5b..3d3246cf8e 100644 --- a/lib/modules/Protocols.pmod/LDAP.pmod/client.pike +++ b/lib/modules/Protocols.pmod/LDAP.pmod/client.pike @@ -1,6 +1,6 @@ // LDAP client protocol implementation for Pike. // -// $Id: client.pike,v 1.13 2000/02/12 10:57:02 hop Exp $ +// $Id: client.pike,v 1.14 2000/02/17 17:59:53 hop Exp $ // // Honza Petrous, hop@unibase.cz // @@ -46,6 +46,8 @@ // [ Escaping untested, yet ] // v1.13 2000-02-12 - fixed search NOT op bug (end revision normalized) // +// v1.14 2000-02-17 - added decoding of UTF8 strings for v3 protocol +// // Specifications: // // RFC 1558 (search filter representations) @@ -131,6 +133,12 @@ } res += ({attrs}); } + + if(ldap_version == 3) { + // deUTF8 + res = Array.map(res, utf8_to_string); + } + return (res); } // _New_decode -- GitLab