Page MenuHomePhorge

function ldap_sprintf($pattern)
libphutil Technical Documentation ()

Format an LDAP string. This function behaves like sprintf, except that all the normal conversions (like "%s") will be properly escaped, and additional conversions are supported:

%S (Search Filter)
  Escapes text for use in a search filter.

%Q (Raw Query)
  Inserts raw, unescaped text. DANGEROUS!
Parameters
$pattern
Return
wild