diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 59d0e8822..5b990bf0d 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -27,7 +27,9 @@ function diaspora2bb($s) { $s = str_replace("\r","",$s); //
is invalid. Replace it with the valid expression - $s = str_replace("
","
",$s); + logger("diaspora2bb: 1: ".$s); + $s = str_replace(array("
", "

", "

"),array("
", "
", "
"),$s); + logger("diaspora2bb: 2: ".$s); $s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s);