diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc b/gosa-plugins/fai/admin/fai/class_faiTemplateEntry.inc
index 2902562ee9d7d4ebf4bb35ba39d0c5c1b0657efe..d95c1b7f4e9214063ed19680e118f6f85453bfc2 100644 (file)
if(isset($_POST['TmpFileUpload']) && $this->acl_is_writeable("FAItemplateFile")){
if($str=file_get_contents($_FILES['FAItemplateFile']['tmp_name'])){
+ $str = preg_replace("/[\r]/","",$str);
$this->FAItemplateFile = $str;
/* If we don't have a filename set it from upload filename. */