summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7c857c4)
raw | patch | inline | side by side (parent: 7c857c4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Apr 2010 13:06:36 +0000 (13:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Apr 2010 13:06:36 +0000 (13:06 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17845 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_baseSelector.inc | patch | blob | history | |
gosa-core/include/class_config.inc | patch | blob | history |
index 68dd3ca036630620cb822c31ef425b06a08aa96c..b11c8364965bee62595c759d33ac643427497c0c 100644 (file)
function setBase($base)
{
+ $base = LDAP::fix($base);
if (isset($this->pathMapping[$base])) {
$this->base= $base;
$this->update(true);
$elements= explode(',', substr($base, 0, strlen($base) - strlen($config->current['BASE'])));
$elements= array_reverse($elements, true);
- $this->pathMapping[$base]= $base == $config->current['BASE']? '/' : ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '/', implode(',', $elements)));
+ $this->pathMapping[LDAP::fix($base)]= $base == $config->current['BASE']? '/' : ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '/', implode(',', $elements)));
}
// Save bases to session for autocompletion
$link= "onclick=\"\$('bs_rebase_".$this->pid."').value='".base64_encode($base)."';$('submit_tree_base_".$this->pid."').click();\"";
$this->tree.= "<li>".
image($config->department_info[$base]['img'])." <a$selected $link>".
- $this->gennonbreaks($config->department_info[$base]['name']).
- ($config->department_info[$base]['description']==''?'':' <span class="informal">['.$this->gennonbreaks($config->department_info[$base]['description']).']</span>').
+ ($this->gennonbreaks($config->department_info[LDAP::fix($base)]['name'])).
+ ($config->department_info[LDAP::fix($base)]['description']==''?'':' <span class="informal">['.$this->gennonbreaks($config->department_info[LDAP::fix($base)]['description']).']</span>').
"</a>";
$last_indent= $indent;
index 07e9152569fd458c8ef48392957ae27fa9ac4d49..f89a32b1b28c76398438626b7d373d45c27b208e 100644 (file)
$dn= $ldap->getDN();
$this->tdepartments[$dn]= "";
- $this->department_info[$dn]= array("img" => $type_data['IMG'],
+ $this->department_info[LDAP::fix($dn)]= array("img" => $type_data['IMG'],
"description" => isset($attrs['description'][0])?$attrs['description'][0]:"",
"name" => $attrs[$type_data['ATTR']][0]);