X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fapi.php;h=d98ad970d59532a51a304fe6c63251758126a697;hb=f663676cca64639202a76b599a1932c9de45f6fa;hp=0e638779b5d9774ddc657140de03fff384ddf625;hpb=822b3865df04bc89a3f177278807d284602ac856;p=friendica.git diff --git a/include/api.php b/include/api.php index 0e638779b5..d98ad970d5 100644 --- a/include/api.php +++ b/include/api.php @@ -1623,7 +1623,9 @@ $include_entities = strtolower(x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:"false"); if ($include_entities != "true") - return false; + return array(); + + $bbcode = bb_CleanPictureLinks($bbcode); // Change pure links in text to bbcode uris $bbcode = preg_replace("/([^\]\='".'"'."]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)/ism", '$1[url=$2]$2[/url]', $bbcode); @@ -2392,6 +2394,8 @@ function api_get_nick($profile) { function api_clean_plain_items($Text) { $include_entities = strtolower(x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:"false"); + $Text = bb_CleanPictureLinks($Text); + if ($include_entities == "true") { $URLSearchString = "^\[\]";