Moved "limitBodySize"

This commit is contained in:
Michael 2018-01-28 17:36:37 +00:00
parent bdbfffafea
commit 6871481a78
4 changed files with 91 additions and 89 deletions

View file

@ -28,6 +28,7 @@ use Friendica\Protocol\OStatus;
use Friendica\Util\Crypto;
use Friendica\Util\Network;
use Friendica\Util\XML;
use Friendica\Content\Text\BBCode;
use dba;
use DOMDocument;
@ -2449,7 +2450,7 @@ class DFRN
// make sure nobody is trying to sneak some html tags by us
$item["body"] = notags(base64url_decode($item["body"]));
$item["body"] = Item::limitBodySize($item["body"]);
$item["body"] = BBCode::limitBodySize($item["body"]);
/// @todo Do we really need this check for HTML elements? (It was copied from the old function)
if ((strpos($item['body'], '<') !== false) && (strpos($item['body'], '>') !== false)) {