From: cajus Date: Fri, 29 Jan 2010 15:43:56 +0000 (+0000) Subject: Fixed problem with quotes in names X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=43073ac4d0e6b18428c163774622e15629b4ffb5;p=gosa.git Fixed problem with quotes in names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15459 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/autocomplete.php b/gosa-core/html/autocomplete.php index fe3da73b8..7db6f2573 100644 --- a/gosa-core/html/autocomplete.php +++ b/gosa-core/html/autocomplete.php @@ -39,7 +39,7 @@ if (isset($_GET['type']) && $_GET['type'] == "base") { if (session::is_set("pathMapping") && count($_POST) == 1) { $res= ""; $pathMapping= session::get("pathMapping"); - $search= current($_POST); + $search= preg_replace('/"/', '"', current($_POST)); foreach ($pathMapping as $key => $value) { if (mb_stristr($value, $search) !== false) { $res.= "
  • $value
  • "; diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc index 01750129f..fa9ad7ddb 100644 --- a/gosa-core/include/class_baseSelector.inc +++ b/gosa-core/include/class_baseSelector.inc @@ -133,7 +133,7 @@ class baseSelector { } $link= "href='?plug=".$_GET['plug']."&PID=".$this->pid."&REBASE=".base64_encode($config->current['BASE'])."'"; - $this->tree= "pid."').hide()\" onfocus=\"\$('bs_".$this->pid."').hide()\" onmouseover=\"Element.clonePosition(\$('bs_".$this->pid."'), 'bs_input_".$this->pid."', {setHeight: false, setWidth: false, offsetTop:(Element.getHeight('bs_input_".$this->pid."'))});\$('bs_".$this->pid."').show();\" onmouseout=\"rtimer= Element.hide.delay(0.25, 'bs_".$this->pid."')\" value=\"".htmlentities($this->pathMapping[$this->base])."\">"; + $this->tree= "pid."').hide()\" onfocus=\"\$('bs_".$this->pid."').hide()\" onmouseover=\"Element.clonePosition(\$('bs_".$this->pid."'), 'bs_input_".$this->pid."', {setHeight: false, setWidth: false, offsetTop:(Element.getHeight('bs_input_".$this->pid."'))});\$('bs_".$this->pid."').show();\" onmouseout=\"rtimer= Element.hide.delay(0.25, 'bs_".$this->pid."')\" value=\"".preg_replace('/"/', '"',$this->pathMapping[$this->base])."\">"; // Autocompleter