diff --git a/include/sieve/class_sieveElement_Redirect.inc b/include/sieve/class_sieveElement_Redirect.inc
index de599151e03105acf9e2bfe599604e316d45bb4a..67bc934a1c4dacdb559d7ec6a2bebc425d52b719 100644 (file)
function get_sieve_script_part()
{
function get_sieve_script_part()
{
- return("redirect ".sieve_create_strings($this->data).";\n");
+ return("redirect ".sieve_create_strings($this->data).";");
}
}
$smarty->assign("LastErrorCnt" , count($this->check()));
$object_container = $smarty->fetch(get_template_path("templates/object_container.tpl",TRUE,dirname(__FILE__)));
$object= $smarty->fetch(get_template_path("templates/element_redirect.tpl",TRUE,dirname(__FILE__)));
$smarty->assign("LastErrorCnt" , count($this->check()));
$object_container = $smarty->fetch(get_template_path("templates/object_container.tpl",TRUE,dirname(__FILE__)));
$object= $smarty->fetch(get_template_path("templates/element_redirect.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);
}
}