BUGFIX: resolve wrong character parsing when posting blog entry from the front-end

This commit is contained in:
Saophalkun Ponlu 2010-06-17 06:05:37 +00:00
parent 755787de5d
commit 1f706f6e73

View File

@ -273,9 +273,8 @@ class BlogHolder_Controller extends BlogTree_Controller {
}
$form->saveInto($blogentry);
$blogentry->ParentID = $this->ID;
$blogentry->Content = $form->datafieldByName('BlogPost')->dataValue();
$blogentry->Content = str_replace("\r\n", "\n", $form->datafieldByName('BlogPost')->dataValue());
if(Object::has_extension($this->ClassName, 'Translatable')) {
$blogentry->Locale = $this->Locale;