"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

@ -9,7 +9,6 @@
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Util\Strings;
function webrtc_install() {
Hook::register('app_menu', 'addon/webrtc/webrtc.php', 'webrtc_app_menu');
@ -27,7 +26,7 @@ function webrtc_addon_admin (&$a, &$o) {
]);
}
function webrtc_addon_admin_post (&$a) {
$url = (!empty($_POST['webrtcurl']) ? Strings::escapeTags(trim($_POST['webrtcurl'])) : '');
$url = (!empty($_POST['webrtcurl']) ? trim($_POST['webrtcurl']) : '');
DI::config()->set('webrtc', 'webrtcurl', $url);
}