From: hickert Date: Fri, 7 Oct 2005 06:53:14 +0000 (+0000) Subject: Fixed slashes in hook script.. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70f44019cf672dac4e83ee584ffe77a28ac8a63b;p=gosa.git Fixed slashes in hook script.. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1526 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 12bd2b123..06df39726 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -69,6 +69,9 @@ class faiHook extends plugin $this->SubObjects[$object['cn'][0]][$codeIt]=base64_decode($this->SubObjects[$object['cn'][0]][$codeIt]); } + foreach($this->subAttributes as $attrs){ + $this->SubObjects[$object['cn'][0]][$attrs]=addslashes($this->SubObjects[$object['cn'][0]][$attrs]); + } } } } @@ -260,7 +263,7 @@ class faiHook extends plugin foreach($Objects as $name => $obj){ foreach($this->sub64coded as $codeIt){ - $obj[$codeIt]=base64_encode($obj[$codeIt]); + $obj[$codeIt]=base64_encode(stripslashes($obj[$codeIt])); } $tmp = array(); @@ -268,7 +271,7 @@ class faiHook extends plugin if(empty($obj[$attrs])){ $obj[$attrs] = array(); } - $tmp[$attrs] = $obj[$attrs]; + $tmp[$attrs] = stripslashes($obj[$attrs]); } $tmp['objectClass'] = $this->subClasses;