Code

Removed quotes from "nextserver" value in dns network extension.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Aug 2007 07:35:30 +0000 (07:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Aug 2007 07:35:30 +0000 (07:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7160 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_dhcpNetwork.inc

index 76cc6fe9ac061c17a39feba63cbd1ff794fd018d..a8c751a72df9520f754822f3a6ce7eaed959a94d 100644 (file)
@@ -116,7 +116,7 @@ class dhcpNetwork extends plugin
       $smarty->assign("filename", "");
     }
     if (isset($this->statements['next-server'])){
-      $smarty->assign("nextserver", trim($this->statements['next-server'], '"'));
+      $smarty->assign("nextserver", $this->statements['next-server']);
     } else {
       $smarty->assign("nextserver", "");
     }
@@ -169,7 +169,13 @@ class dhcpNetwork extends plugin
         if ($_POST["$val"] == ''){
           unset($this->statements["$key"]);
         } else {
-          $this->statements["$key"]= '"'.get_post("$val").'"';
+    
+          /* Only quote filename values */
+          if(in_array($key,array("filename"))){
+            $this->statements["$key"]= '"'.get_post("$val").'"';
+          }else{
+            $this->statements["$key"]= get_post("$val");
+          }
         }
       }
 
@@ -215,5 +221,5 @@ class dhcpNetwork extends plugin
   }
   
 }
-
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>