From 47e3739f03b23d1548c927eea3741ca4f0506491 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Oct 2010 07:20:27 +0000 Subject: [PATCH] Updated comment git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19915 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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. -- 2.30.2