From 6ab4a6042dfbcc963e702b2cc1c8551c4edeeb91 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 9 Jan 2009 15:01:42 +0000 Subject: [PATCH] Updated DNS plugins -Record entries exponentially escaped special chars like " or ' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13337 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dns/admin/systems/services/dns/class_servDNSeditZone.inc | 2 +- .../systems/services/dns/class_servDNSeditZoneEntries.inc | 3 +-- gosa-plugins/systems/admin/systems/class_termDNS.inc | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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 aee9dfa4a..695aa5e52 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc @@ -388,7 +388,7 @@ class servdnseditZone extends plugin $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 48a8c31f8..87e1efc5e 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc @@ -92,7 +92,6 @@ class servDNSeditZoneEntries extends plugin /* Add a new Record in given object */ - $tmp = preg_replace("/^.*_(.*)_.*$/","\\1",$name); $tmp2 = split("\|",$tmp); @@ -162,7 +161,7 @@ class servDNSeditZoneEntries extends plugin /* 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 6fd06d3c6..bcd889529 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -559,7 +559,7 @@ class termDNS extends plugin } /* 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); } } } -- 2.30.2