Code

Updated set_post method
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Jul 2010 10:21:12 +0000 (10:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Jul 2010 10:21:12 +0000 (10:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18976 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index eaa1be78c7a4ce192232b331724de9229fa0e049..e01cfb2320a59bf1e2fd75e7be3710e517af065d 100644 (file)
@@ -2934,6 +2934,12 @@ function get_binary_post($name)
 
 function set_post($value)
 {
+    if(is_array($value)){
+        foreach($value as $key => $val){
+            $value[$key] = set_post($val);
+        }
+        return($value);
+    }
     return(htmlentities($value, ENT_QUOTES, 'utf-8'));
 }