Code

Fixed hook upload
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Apr 2008 14:56:55 +0000 (14:56 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Apr 2008 14:56:55 +0000 (14:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10304 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiHookEntry.inc

index 433437e5be990a93b693a1a89a01d220990dc1d2..912b8605c16b37c93d412ece15b71836a56db4ce 100644 (file)
@@ -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);
       }
     }