From 7313d98ba2aae95f672e3e7f7a2c9c2caee1192b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 24 Jan 2006 09:43:42 +0000 Subject: [PATCH] Added fix for backslash problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2550 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiScriptEntry.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()){ -- 2.30.2