Code

Updated DNS plugins
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Jan 2009 15:01:42 +0000 (15:01 +0000)
committerhickert <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

gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc
gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc
gosa-plugins/systems/admin/systems/class_termDNS.inc

index aee9dfa4aad7daa5b7d49f4dfe3c1821ea3c2d6c..695aa5e523b3c96226ca73628f12f0f1badc4bff 100644 (file)
@@ -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);
         }
       }
     }
index 48a8c31f8838ab1e27e8ac6fa182e5473411bec5..87e1efc5ecf120c4714da6eb3f9e086eb3a3e6eb 100644 (file)
@@ -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"){
index 6fd06d3c602077beda626330b3699d2c0657c0e4..bcd889529413877d2a46f837b5f81b5685a8a784 100644 (file)
@@ -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);
             }
           }
         }