Skip to content
Snippets Groups Projects
Commit 4ad4cd94 authored by Honza Petrous's avatar Honza Petrous
Browse files

Added decoding of UTF8 strings in results (for v3 protocol)

Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.14
parent 67abdc38
No related branches found
No related tags found
No related merge requests found
// LDAP client protocol implementation for Pike. // 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 // Honza Petrous, hop@unibase.cz
// //
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
// [ Escaping untested, yet ] // [ Escaping untested, yet ]
// v1.13 2000-02-12 - fixed search NOT op bug (end revision normalized) // 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: // Specifications:
// //
// RFC 1558 (search filter representations) // RFC 1558 (search filter representations)
...@@ -131,6 +133,12 @@ ...@@ -131,6 +133,12 @@
} }
res += ({attrs}); res += ({attrs});
} }
if(ldap_version == 3) {
// deUTF8
res = Array.map(res, utf8_to_string);
}
return (res); return (res);
} // _New_decode } // _New_decode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment