pike.git / lib / modules / Protocols.pmod / LDAP.pmod / client.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1:   #pike __REAL_VERSION__      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.118 2009/09/08 08:15:36 mast Exp $ + // $Id: client.pike,v 1.119 2009/12/14 12:28:24 mast Exp $   //   // Honza Petrous, hop@unibase.cz   //   // ----------------------------------------------------------------------   //   // History:   //   // v0.0 1998-05-25 Starting up!   // v1.0 1998-06-21 Core functions (open, bind, unbind, delete, add,   // compare, search), only V2 operations,
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:317:    VALUE = Locale.Charset.DecodeError (VALUE, -1, 0, errmsg); \    else \    throw (Locale.Charset.DecodeError (VALUE, -1, 0, errmsg)); \    } \    } while (0)      #endif       foreach (ent; string attr; ResultAttributeValue vals) {    if (function(string:string) decoder = -  get_attr_decoder (attr, DO_IF_DEBUG (dn == ""))) { +  get_attr_decoder (attr, DO_IF_DEBUG (stringp (dn) ? +  dn == "" : dn[0] == ""))) {    if (stringp (vals)) {    DECODE_VALUE (attr, vals, decoder);    ent[attr] = vals;    }    else    foreach (vals; int i; string|Locale.Charset.DecodeError val) {    DECODE_VALUE (attr, val, decoder);    vals[i] = val;    }    }