]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Merge branch 'master' of git://github.com/tobiasd/friendika
[friendica.git] / mod / item.php
index f964e7737db2ab4f87ffaebf35aa2c3d090160f8..feef7c95f8f5f3cea88e23579110e81b292bd130 100644 (file)
@@ -165,7 +165,11 @@ function item_post(&$a) {
                }
        }
 
+       /**
+        * Fold multi-line [code] sequences
+        */
 
+       $body = preg_replace('/\[\/code\]\s*\[code\]/m',"\n",$body); 
 
        /**
         * Look for any tags and linkify them