From: cajus Date: Wed, 9 Apr 2008 14:56:55 +0000 (+0000) Subject: Fixed hook upload X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=11b19c849471c65c94d35de97c9dcbcd7566406e;p=gosa.git Fixed hook upload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10304 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiHookEntry.inc b/gosa-plugins/fai/admin/fai/class_faiHookEntry.inc index 433437e5b..912b8605c 100644 --- a/gosa-plugins/fai/admin/fai/class_faiHookEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiHookEntry.inc @@ -70,7 +70,7 @@ class faiHookEntry extends plugin msg_dialog::display(_("Error"), _("Uploaded file is empty!"), ERROR_DIALOG); }else{ $str = utf8_encode(file_get_contents($_FILES['ImportFile']['tmp_name'])); - $this->FAIscript = $str; + $this->FAIscript = addslashes ($str); } }