From ea6207cae6584839faf840460ec8d9a291ab2534 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 7 Oct 2005 06:48:59 +0000 Subject: [PATCH] Fixed slashes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1525 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiScript.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 03f27c199..2ec36ad96 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -64,7 +64,11 @@ class faiScript extends plugin } foreach($this->sub64coded as $codeIt){ - $this->SubObjects[$object['cn'][0]][$codeIt]=base64_decode($this->SubObjects[$object['cn'][0]][$codeIt]); + $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]); } $this->SubObjects[$object['cn'][0]]['status'] = "edited"; @@ -249,7 +253,7 @@ class faiScript 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(); @@ -257,7 +261,7 @@ class faiScript extends plugin if(empty($obj[$attrs])){ $obj[$attrs] = array(); } - $tmp[$attrs] = $obj[$attrs]; + $tmp[$attrs] = stripslashes($obj[$attrs]); } $tmp['objectClass'] = $this->subClasses; -- 2.30.2