Code

Fixed labeledURI / Uri problem
[gosa.git] / plugins / admin / fai / class_faiScriptEntry.inc
index f7152fce741510c84ee46cebb3506fe0c266b8e2..3d6ad9eb92e29304af1b11edffdebe10161bdd5d 100644 (file)
@@ -39,6 +39,9 @@ class faiScriptEntry extends plugin
 
   function execute()
   {
+       /* Call parent execute */
+       plugin::execute();
+
     /* Fill templating stuff */
     $smarty     = get_smarty();
     $display = "";
@@ -50,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()){