mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
"escapeTags" is removed from the addons
This commit is contained in:
parent
6a7f36ba89
commit
cff3dd67b0
12 changed files with 25 additions and 34 deletions
|
@ -14,7 +14,6 @@ use Friendica\Core\Renderer;
|
|||
use Friendica\DI;
|
||||
use Friendica\Core\Config\Util\ConfigFileLoader;
|
||||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function impressum_install() {
|
||||
Hook::register('load_config', 'addon/impressum/impressum.php', 'impressum_load_config');
|
||||
|
@ -79,11 +78,11 @@ function impressum_show($a,&$b) {
|
|||
}
|
||||
|
||||
function impressum_addon_admin_post (&$a) {
|
||||
$owner = (!empty($_POST['owner']) ? Strings::escapeTags(trim($_POST['owner'])) : '');
|
||||
$ownerprofile = (!empty($_POST['ownerprofile']) ? Strings::escapeTags(trim($_POST['ownerprofile'])) : '');
|
||||
$owner = (!empty($_POST['owner']) ? trim($_POST['owner']) : '');
|
||||
$ownerprofile = (!empty($_POST['ownerprofile']) ? trim($_POST['ownerprofile']) : '');
|
||||
$postal = (!empty($_POST['postal']) ? (trim($_POST['postal'])) : '');
|
||||
$notes = (!empty($_POST['notes']) ? (trim($_POST['notes'])) : '');
|
||||
$email = (!empty($_POST['email']) ? Strings::escapeTags(trim($_POST['email'])) : '');
|
||||
$email = (!empty($_POST['email']) ? trim($_POST['email']) : '');
|
||||
$footer_text = (!empty($_POST['footer_text']) ? (trim($_POST['footer_text'])) : '');
|
||||
DI::config()->set('impressum','owner',strip_tags($owner));
|
||||
DI::config()->set('impressum','ownerprofile',strip_tags($ownerprofile));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue