diff --git a/include/sieve/class_sieveElement_Require.inc b/include/sieve/class_sieveElement_Require.inc
index fac16e2969e38c12667bae0b95dc9b7ec72eab89..535c591e86a73da987331e3766b6d2d89719b371 100644 (file)
function get_sieve_script_part()
{
function get_sieve_script_part()
{
+ if(count($this->data)){
$tmp = sieve_create_strings($this->data);
return("require ".$tmp.";\n");
$tmp = sieve_create_strings($this->data);
return("require ".$tmp.";\n");
+ }else{
+ return("");
+ }
}
function execute()
}
function execute()
$smarty->assign("ID", $this->object_id);
$object_container = $smarty->fetch(get_template_path("templates/object_container.tpl",TRUE,dirname(__FILE__)));
$object= $smarty->fetch(get_template_path("templates/element_require.tpl",TRUE,dirname(__FILE__)));
$smarty->assign("ID", $this->object_id);
$object_container = $smarty->fetch(get_template_path("templates/object_container.tpl",TRUE,dirname(__FILE__)));
$object= $smarty->fetch(get_template_path("templates/element_require.tpl",TRUE,dirname(__FILE__)));
- $str = preg_replace("/%%OBJECT_CONTENT%%/",$object,$object_container);
+ $str = preg_replace("/%%OBJECT_CONTENT%%/",addcslashes($object,"\\"),$object_container);
return($str);
}
}
return($str);
}
}