summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f528ffb)
raw | patch | inline | side by side (parent: f528ffb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Jan 2009 15:01:42 +0000 (15:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Jan 2009 15:01:42 +0000 (15:01 +0000) |
-Record entries exponentially escaped special chars like " or '
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13337 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13337 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc
index aee9dfa4aad7daa5b7d49f4dfe3c1821ea3c2d6c..695aa5e523b3c96226ca73628f12f0f1badc4bff 100644 (file)
$this->Records[$id]['type'] = $_POST['RecordTypeSelectedFor_'.$id];
}
if(isset($_POST['RecordValue_'.$id])){
- $this->Records[$id]['value'] = $_POST['RecordValue_'.$id];
+ $this->Records[$id]['value'] = get_post('RecordValue_'.$id);
}
}
}
diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc
index 48a8c31f8838ab1e27e8ac6fa182e5473411bec5..87e1efc5ecf120c4714da6eb3f9e086eb3a3e6eb 100644 (file)
/* Add a new Record in given object
*/
-
$tmp = preg_replace("/^.*_(.*)_.*$/","\\1",$name);
$tmp2 = split("\|",$tmp);
/* Update value */
$old = $this->Devices[$Name]['RECORDS'][$RecordID]['value'];
- $this->Devices[$Name]['RECORDS'][$RecordID]['value'] = $value;
+ $this->Devices[$Name]['RECORDS'][$RecordID]['value'] = get_post($name);
/* Handle pTRRecord */
if(!isset($ptr_updates[$Name]) && $this->Devices[$Name]['RECORDS'][$RecordID]['type'] == "aRecord"){
diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index 6fd06d3c602077beda626330b3699d2c0657c0e4..bcd889529413877d2a46f837b5f81b5685a8a784 100644 (file)
}
/* Check if value has changed */
if(isset($_POST['RecordValue_'.$key])){
- $this->dnsEntry['RECORDS'][$key]['value'] = $_POST['RecordValue_'.$key];
+ $this->dnsEntry['RECORDS'][$key]['value'] = get_post('RecordValue_'.$key);
}
}
}