diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc
index 4d337ca4b3990adf3ac956de5590032cd571208b..1fb0239d9088aa3a47b1b1d011c65f719399a986 100644 (file)
}
-
foreach($this->attributes as $attrs){
- $smarty->assign($attrs,stripslashes($this->$attrs));
+ if(get_magic_quotes_gpc()){
+ $smarty->assign($attrs,stripslashes($this->$attrs));
+ }else{
+ $smarty->assign($attrs,($this->$attrs));
+ }
}
- for($i =1 ; $i <= 100 ; $i++){
+ for($i =0 ; $i < 100 ; $i++){
$Object_FAIprioritys[$i]=$i;
}
$smarty->assign("Object_FAIprioritys",$Object_FAIprioritys);
{
$message= array();
- $str = utf8_encode("üöä");
-
- if(empty($this->Object_FAIscript)){
- $message[]=_("Please specify a script.");
- }
-
- if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->Object_description)){
- $message[] = _("Invalid character in description. Please enter a valid description.");
- }
-
if(empty($this->Object_cn)){
$message[] = _("Please enter a name.");
}