Code

Added addslahes for binary attributes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Oct 2005 10:15:31 +0000 (10:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Oct 2005 10:15:31 +0000 (10:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1682 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiScript.inc
plugins/admin/fai/class_faiTemplate.inc

index 89f73d8fe6f3053ae6a460d7d2bdb030ad0d02b9..0cc84fbeb619af9ee609c3f173665037a3a77705 100644 (file)
@@ -72,7 +72,7 @@ class faiHook extends plugin
         foreach($this->subAttributes as $attrs){
           $this->SubObjects[$object['cn'][0]][$attrs]=addslashes($this->SubObjects[$object['cn'][0]][$attrs]);
         }
-        $this->SubObjects[$object['cn'][0]]['FAIscript']   = $this->readBinary("FAIscript",$object['dn']);
+        $this->SubObjects[$object['cn'][0]]['FAIscript']   = addslashes($this->readBinary("FAIscript",$object['dn']));
       }
     }
   }
index 9885b5cfacca92570aeb4b3cb632263736543a25..3ec7f68a78cbdc30ac2f759c583c1255827163de 100644 (file)
@@ -71,7 +71,7 @@ class faiScript extends plugin
           $this->SubObjects[$object['cn'][0]][$attrs]=addslashes($this->SubObjects[$object['cn'][0]][$attrs]);
         }
 
-        $this->SubObjects[$object['cn'][0]]['FAIscript']   = $this->readBinary("FAIscript",$object['dn']);
+        $this->SubObjects[$object['cn'][0]]['FAIscript']   = addslashes ($this->readBinary("FAIscript",$object['dn']));
  
         $this->SubObjects[$object['cn'][0]]['status']      = "edited";
         $this->SubObjects[$object['cn'][0]]['dn']          = $object['dn'];
index cf8623305d9e06c91cf0bbb3bcc274c27b86bceb..19273b569f8d60e8884b325e59cc4cc571bf3253 100644 (file)
@@ -67,7 +67,7 @@ class faiTemplate extends plugin
           $this->SubObjects[$object['cn'][0]][$codeIt]=base64_decode($this->SubObjects[$object['cn'][0]][$codeIt]);
         }       
 
-        $this->SubObjects[$object['cn'][0]]['FAItemplateFile'] = $this->readBinary("FAItemplateFile",$object['dn']);
+        $this->SubObjects[$object['cn'][0]]['FAItemplateFile'] =addslashes( $this->readBinary("FAItemplateFile",$object['dn']));
        
         $this->SubObjects[$object['cn'][0]]['status']      = "edited";
         $this->SubObjects[$object['cn'][0]]['dn']          = $object['dn'];