Branch: Tag:

2000-02-17

2000-02-17 17:59:53 by Honza Petrous <hop@unibase.cz>

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

Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.14

1:   // 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:   // [ 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:    }    res += ({attrs});    } +  +  if(ldap_version == 3) { +  // deUTF8 +  res = Array.map(res, utf8_to_string); +  } +     return (res);    } // _New_decode