From 9fb076c12adda9d488b1a213c5bd2081f8fb19bb Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 29 Aug 2007 07:35:30 +0000 Subject: [PATCH] Removed quotes from "nextserver" value in dns network extension. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7160 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_dhcpNetwork.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/admin/systems/class_dhcpNetwork.inc b/plugins/admin/systems/class_dhcpNetwork.inc index 76cc6fe9a..a8c751a72 100644 --- a/plugins/admin/systems/class_dhcpNetwork.inc +++ b/plugins/admin/systems/class_dhcpNetwork.inc @@ -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: ?> -- 2.30.2