aboutsummaryrefslogtreecommitdiffstats
path: root/mod/message.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-26 17:57:27 -0700
committerfriendica <info@friendica.com>2012-03-26 17:57:27 -0700
commitb5d0315d55b6488d9493dd49bd35a2fe1b1492c7 (patch)
treefc3fbda1fd755912423fb186a651d64c5eb8dab0 /mod/message.php
parent03b95c9a091920d0796f7835afc762d09971ab32 (diff)
downloadvolse-hubzilla-b5d0315d55b6488d9493dd49bd35a2fe1b1492c7.tar.gz
volse-hubzilla-b5d0315d55b6488d9493dd49bd35a2fe1b1492c7.tar.bz2
volse-hubzilla-b5d0315d55b6488d9493dd49bd35a2fe1b1492c7.zip
preparation for some possibly killer features
Diffstat (limited to 'mod/message.php')
-rwxr-xr-xmod/message.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/message.php b/mod/message.php
index 0907abd77..8991f643d 100755
--- a/mod/message.php
+++ b/mod/message.php
@@ -15,6 +15,13 @@ function message_post(&$a) {
$body = ((x($_REQUEST,'body')) ? escape_tags(trim($_REQUEST['body'])) : '');
$recipient = ((x($_REQUEST,'messageto')) ? intval($_REQUEST['messageto']) : 0 );
+ // Work around doubled linefeeds in Tinymce 3.5b2
+
+ $plaintext = intval(get_pconfig(local_user(),'system','plaintext'));
+ if(! $plaintext) {
+ $body = str_replace("\r\n","\n",$body);
+ $body = str_replace("\n\n","\n",$body);
+ }
$ret = send_message($recipient, $body, $subject, $replyto);
$norecip = false;