The format function is stripping out "rn" causing words like "learn" to be displayed as "lea". Obviously, that's super annoying. I believe the original intention was to remove new line artifacts from text.
This is the problematic function:
Code:
private function format($text){
$text = html_entity_decode($text);
$text = stripslashes($text);
$text = str_replace("rn","",$text);
return $text;
}
Another issue with this is that it's repeated in four different files, more if you use mods like the news add on. So I suggest downloading an editor like Sublime Text 3, opening the folder with your site and using "Find in Files" to find all instances so it can be fixed. For the easiest fix I suggest simply deleting the line:
$text = str_replace("rn","",$text);
So far I haven't noticed excess "rn"s anyway. But if you're afraid of that, here's a corrected function that will strip new lines without stripping the letters "rn" from words.
Code:
private function format($text){
$text = html_entity_decode($text);
$text = str_replace("\r\n","",$text);
$text = stripslashes($text);
return $text;
}
In the base script you can find this function in the following files:
admincp\content.php
classes\class_messagecontainer.php
classes\class_privatemessage.php
inc\ckeditor_init.php