]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
Merge commit 'upstream/master'
[friendica.git] / include / text.php
index 29c781030dd8142d065b5736c6b32e0987c6ae86..4ec59a66589c05ec8509d53da9e37ec46741fc79 100644 (file)
@@ -80,7 +80,7 @@ function escape_tags($string) {
 if(! function_exists('autoname')) {
 function autoname($len) {
 
-       if(! $len)
+       if($len <= 0)
                return '';
 
        $vowels = array('a','a','ai','au','e','e','e','ee','ea','i','ie','o','ou','u'); 
@@ -1506,3 +1506,8 @@ function undo_post_tagging($s) {
        return $s;
 }
 
+function fix_mce_lf($s) {
+       $s = str_replace("\r\n","\n",$s);
+       $s = str_replace("\n\n","\n",$s);
+       return $s;
+}
\ No newline at end of file