"escapeTags" is removed from the addons

This commit is contained in:
Michael 2021-11-07 08:49:34 +00:00
parent 6a7f36ba89
commit cff3dd67b0
12 changed files with 25 additions and 34 deletions

View file

@ -11,7 +11,6 @@ use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Util\Strings;
function newmemberwidget_install()
{
@ -49,7 +48,7 @@ function newmemberwidget_network_mod_init ($a, $b)
function newmemberwidget_addon_admin_post(&$a)
{
$ft = (!empty($_POST['freetext']) ? trim($_POST['freetext']) : "");
$lsn = (!empty($_POST['localsupportname']) ? Strings::escapeTags(trim($_POST['localsupportname'])) : "");
$lsn = (!empty($_POST['localsupportname']) ? trim($_POST['localsupportname']) : "");
$gs = intval($_POST['linkglobalsupport']);
$ls = intval($_POST['linklocalsupport']);
DI::config()->set('newmemberwidget', 'freetext', trim($ft));