"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

@ -36,7 +36,6 @@ use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Core\Config\Util\ConfigFileLoader;
use Friendica\Util\Strings;
function piwik_install() {
Hook::register('load_config', 'addon/piwik/piwik.php', 'piwik_load_config');
@ -102,7 +101,7 @@ function piwik_addon_admin (&$a, &$o) {
]);
}
function piwik_addon_admin_post (&$a) {
$url = (!empty($_POST['baseurl']) ? Strings::escapeTags(trim($_POST['baseurl'])) : '');
$url = (!empty($_POST['baseurl']) ? trim($_POST['baseurl']) : '');
$id = (!empty($_POST['siteid']) ? trim($_POST['siteid']) : '');
$optout = (!empty($_POST['optout']) ? trim($_POST['optout']) : '');
$async = (!empty($_POST['async']) ? trim($_POST['async']) : '');