From 08d7983a4588a177c4bfe41d771209597816a0fe Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 25 Oct 2005 10:15:31 +0000 Subject: [PATCH] Added addslahes for binary attributes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1682 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHook.inc | 2 +- plugins/admin/fai/class_faiScript.inc | 2 +- plugins/admin/fai/class_faiTemplate.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 89f73d8fe..0cc84fbeb 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -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'])); } } } diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 9885b5cfa..3ec7f68a7 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -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']; diff --git a/plugins/admin/fai/class_faiTemplate.inc b/plugins/admin/fai/class_faiTemplate.inc index cf8623305..19273b569 100644 --- a/plugins/admin/fai/class_faiTemplate.inc +++ b/plugins/admin/fai/class_faiTemplate.inc @@ -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']; -- 2.30.2