From: hickert Date: Tue, 5 Oct 2010 07:20:27 +0000 (+0000) Subject: Updated comment X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=47e3739f03b23d1548c927eea3741ca4f0506491;p=gosa.git Updated comment git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19915 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 338ab70da..629fcd3ca 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -3863,8 +3863,10 @@ function detectLdapSpecialCharHandling() /*! \brief Replaces placeholder in a given string. * For example: * '%uid@gonicus.de' Replaces '%uid' with 'uid'. - * '%uid{0}@gonicus.de' Replaces '%uid{0}' with the first char of 'uid'. - * '%uid{2:4}@gonicus.de' Replaces '%uid{2:4}' with three chars from 'uid' starting from the second. + * '{%uid[0]@gonicus.de}' Replaces '%uid[0]' with the first char of 'uid'. + * '%uid[2-4]@gonicus.de' Replaces '%uid[2-4]' with three chars from 'uid' starting from the second. + * + * The surrounding {} in example 2 are optional. * * @param String The string to perform the action on. * @param Array An array of replacements. @@ -3872,7 +3874,7 @@ function detectLdapSpecialCharHandling() */ function fillReplacements($str, $attrs, $shellArg = FALSE, $default = "") { - // Search for '%...{...} + // Search for '{%...[n-m]} // Get all matching parts of the given string and sort them by // length, to avoid replacing strings like '%uidNumber' with 'uid' // instead of 'uidNumber'; The longest tring at first.