]> git.mxchange.org Git - friendica.git/commitdiff
completely enclose ~f hashtags so they don't get hijacked by D*
authorFriendika <info@friendika.com>
Fri, 2 Sep 2011 12:13:38 +0000 (05:13 -0700)
committerFriendika <info@friendika.com>
Fri, 2 Sep 2011 12:13:38 +0000 (05:13 -0700)
include/bb2diaspora.php

index 92f492116f84b49c48325e597f90328febd665f7..2eeea32cd7857b51202eadb6c5c54d5cc672ce51 100644 (file)
@@ -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);