summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7f57619)
raw | patch | inline | side by side (parent: 7f57619)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 1 Apr 2010 12:28:43 +0000 (12:28 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 1 Apr 2010 12:28:43 +0000 (12:28 +0000) |
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
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
trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc | patch | blob | history |
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 8f2da4d290e13f0ea74571095dc5f5ea43e7d2a3..5e757ef35807573b0310ab9769c95db8656ee058 100644 (file)
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;
}
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];
}
}