diff --git a/plugins/admin/fai/class_faiVariableEntry.inc b/plugins/admin/fai/class_faiVariableEntry.inc
index d3a19ebbe5d01662672a429d3b9daa4bb466979c..44780047c8add96fad704f6aa30a5d4d81600586 100644 (file)
$smarty = get_smarty();
$display = "";
+ /* Magic quotes GPC, escapes every ' " \, to solve some security risks
+ * If we post the escaped strings they will be escaped again
+ */
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++){
$message[]=_("Please specify a value for the attribute 'content'.");
}
- if(empty($this->Object_description)){
- $message[] = _("Please enter a description.");
- }
-
if(empty($this->Object_cn)){
$message[] = _("Please enter a name.");
}