From: psc Date: Thu, 1 Apr 2010 12:28:43 +0000 (+0000) Subject: Followup commit for #2994 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f8bdec59426a5ac810ac807cff641c9628880863;p=gosa.git Followup commit for #2994 When extracting (key, value) tuples for application parameters from either an application or a meno groups use a limit in the split/explode command, so that only the first double-colon is actually used to split the string. Fixes a bug where strings containing double-colons get truncated. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17458 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 8f2da4d29..5e757ef35 100644 --- a/trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc +++ b/trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc @@ -331,7 +331,7 @@ class appgroup extends plugin if(isset($attrs['gosaApplicationParameter'])){ for($p = 0 ; $p < $attrs['gosaApplicationParameter']['count'] ; $p ++){ if(preg_match("/:/",$attrs['gosaApplicationParameter'][$p])){ - list($key, $value) = split(":",$attrs['gosaApplicationParameter'][$p]); + list($key, $value) = explode(":",$attrs['gosaApplicationParameter'][$p], 2); if ($key == "gosaApplicationFlags") { $data['FLAGS'] = $value; } @@ -635,7 +635,7 @@ class appgroup extends plugin if(isset($app['gosaApplicationParameter'])){ for($i = 0 ; $i < $app['gosaApplicationParameter']['count'] ; $i++) { $para = $app['gosaApplicationParameter'][$i]; - $tmp = split(":",$para); + $tmp = explode(":",$para, 2); $this->app_parameter[$tmp[0]] = $tmp[1]; } }