Code

Updated special char handling for scripts
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Jul 2010 11:13:59 +0000 (11:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Jul 2010 11:13:59 +0000 (11:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18962 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiScriptEntry.inc

index b4da90ddba78d8f8466c2a9f187cf4f792068b19..33c38f35d72fb598105c94eb6181951674b31c48 100644 (file)
@@ -68,7 +68,7 @@ class faiScriptEntry extends plugin
     foreach($this->attributes as $attrs){
       $smarty->assign($attrs, htmlentities($this->$attrs, ENT_QUOTES, 'utf-8'));
     }
-    $smarty->assign('FAIscript', htmlentities($this->FAIscript));
+    $smarty->assign('FAIscript', htmlentities($this->FAIscript, ENT_QUOTES, 'utf-8'));
 
     /* File download requested */
     if(isset($_POST['download'])){
@@ -99,11 +99,9 @@ class faiScriptEntry extends plugin
   /* Save data to object */
   function save_object()
   {
-    return;
     if((isset($_POST['SubObjectFormSubmitted'])) && !preg_match("/freeze/", $this->FAIstate)){
       foreach($this->attributes as $attrs){
           if($this->acl_is_writeable($attrs)){
-
               if(isset($_POST[$attrs])){
                   $this->$attrs = get_binary_post($attrs);
               }else{