diff --git a/core/components/quip/processors/web/comment/create.php b/core/components/quip/processors/web/comment/create.php index 138cedd..63ee371 100644 --- a/core/components/quip/processors/web/comment/create.php +++ b/core/components/quip/processors/web/comment/create.php @@ -83,7 +83,7 @@ $fields['body'] = $quip->cleanse($fields['comment'],$this->getProperties()); $fields['body'] = $quip->parseLinks($fields['body'],$this->getProperties()); if (empty($fields['body'])) $errors['comment'] = $modx->lexicon('quip.message_err_ns'); -$fields['body'] = str_replace(array('

','

'),'',nl2br($fields['body'])); +$fields['body'] = str_replace(array("\r\n","\r","\n"),'
',$fields['body']); /* run preHooks */ $quip->loadHooks('pre'); @@ -233,4 +233,4 @@ 'hooks' => $this->getProperty('postHooks',''), )); -return $comment; \ No newline at end of file +return $comment;