From: hickert Date: Tue, 24 Jan 2006 09:43:42 +0000 (+0000) Subject: Added fix for backslash problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7313d98ba2aae95f672e3e7f7a2c9c2caee1192b;p=gosa.git Added fix for backslash problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2550 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc index d25af1936..3d6ad9eb9 100644 --- a/plugins/admin/fai/class_faiScriptEntry.inc +++ b/plugins/admin/fai/class_faiScriptEntry.inc @@ -53,11 +53,10 @@ class faiScriptEntry extends plugin if(($_FILES['ImportFile']['size']==0)){ print_red(_("Selected file is empty.")); }else{ - $str = utf8_encode(file_get_contents($_FILES['ImportFile']['tmp_name'])); + $str = utf8_encode(addslashes(file_get_contents($_FILES['ImportFile']['tmp_name']))); $this->FAIscript = $str; } } - foreach($this->attributes as $attrs){ if(get_magic_quotes_gpc()){