When converting to plain text, links behind @-addresses are now removed
This commit is contained in:
parent
63a581bf9b
commit
7614ae40ef
1 changed files with 4 additions and 3 deletions
|
@ -2420,10 +2420,11 @@ function api_clean_plain_items($Text) {
|
||||||
|
|
||||||
$Text = bb_CleanPictureLinks($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);
|
$Text = preg_replace("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",'[url=$1]$1[/url]',$Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue