When converting to plain text, links behind @-addresses are now removed

This commit is contained in:
Michael Vogel 2014-04-04 10:44:42 +02:00
parent 63a581bf9b
commit 7614ae40ef
1 changed files with 4 additions and 3 deletions

View File

@ -2420,10 +2420,11 @@ function api_clean_plain_items($Text) {
$Text = bb_CleanPictureLinks($Text);
if ($include_entities == "true") {
$URLSearchString = "^\[\]";
$URLSearchString = "^\[\]";
$Text = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",'#$2',$Text);
$Text = preg_replace("/([!#@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",'$1$3',$Text);
if ($include_entities == "true") {
$Text = preg_replace("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",'[url=$1]$1[/url]',$Text);
}