Browse Source

completely enclose ~f hashtags so they don't get hijacked by D*

pull/1/head
Friendika 11 years ago
parent
commit
93b9d71377
  1. 3
      include/bb2diaspora.php

3
include/bb2diaspora.php

@ -58,7 +58,8 @@ function bb2diaspora($Text,$preserve_nl = false) {
$Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '[$1]($1)', $Text);
$Text = preg_replace("(\[url\=([$URLSearchString]*)\](.*?)\[/url\])", '[$2]($1)', $Text);
$Text = preg_replace("/\#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/", '[#$2]($1)', $Text);
$Text = preg_replace("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/", '[$2]($1)', $Text);
// $Text = preg_replace("/\[img\](.*?)\[\/img\]/", t('Image/photo: ') . '$1', $Text);
// $Text = preg_replace("/\[img\](.*?)\[\/img\]/", t('image/photo'), $Text);

Loading…
Cancel
Save