"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

@ -791,8 +791,8 @@ function twitter_post_hook(App $a, array &$b)
function twitter_addon_admin_post(App $a)
{
$consumerkey = !empty($_POST['consumerkey']) ? Strings::escapeTags(trim($_POST['consumerkey'])) : '';
$consumersecret = !empty($_POST['consumersecret']) ? Strings::escapeTags(trim($_POST['consumersecret'])) : '';
$consumerkey = !empty($_POST['consumerkey']) ? trim($_POST['consumerkey']) : '';
$consumersecret = !empty($_POST['consumersecret']) ? trim($_POST['consumersecret']) : '';
DI::config()->set('twitter', 'consumerkey', $consumerkey);
DI::config()->set('twitter', 'consumersecret', $consumersecret);
}