summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4636fb9)
raw | patch | inline | side by side (parent: 4636fb9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Apr 2010 06:21:39 +0000 (06:21 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Apr 2010 06:21:39 +0000 (06:21 +0000) |
- Fixed problem with manual input of bases with ' or " in their name.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17865 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17865 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_baseSelector.inc | patch | blob | history | |
gosa-core/include/class_listing.inc | patch | blob | history |
index 68dd3ca036630620cb822c31ef425b06a08aa96c..ce38b2ac23d9adeaa85a143c4212ce3429ffbfc7 100644 (file)
if(isset($_REQUEST['BPID']) && $_REQUEST['BPID'] == $this->pid) {
if (isset($_POST['bs_rebase_'.$this->pid]) && !empty($_POST['bs_rebase_'.$this->pid])) {
$new_base= base64_decode($_POST['bs_rebase_'.$this->pid]);
+
if (isset($this->pathMapping[$new_base])) {
$this->base= $new_base;
$this->action= 'rebase';
return false;
}
}else{
+
// Input field set?
if (isset($_POST['bs_input_'.$this->pid])) {
// Check if base is available
$this->lastState= false;
foreach ($this->pathMapping as $key => $path) {
- if (mb_strtolower($path) == mb_strtolower($_POST['bs_input_'.$this->pid])) {
+ if (mb_strtolower($path) == mb_strtolower(get_post('bs_input_'.$this->pid))) {
$this->base= $key;
$this->lastState= true;
break;
index bfc9c0735a2f92d51c02d637568023cd84faa39c..c49320984f65053bd1346afb14141bb25bd7ecba 100644 (file)
// Take care of base selector
if ($this->baseMode) {
$this->baseSelector->update();
+
// Check if a wrong base was supplied
if(!$this->baseSelector->checkLastBaseUpdate()){
msg_dialog::display(_("Error"), msgPool::check_base(), ERROR_DIALOG);