"escapeTags" is removed from the addons
This commit is contained in:
parent
6a7f36ba89
commit
cff3dd67b0
12 changed files with 25 additions and 34 deletions
|
@ -17,7 +17,6 @@ use Friendica\Model\Notification;
|
|||
use Friendica\Model\User;
|
||||
use Friendica\Core\Config\Util\ConfigFileLoader;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function public_server_install()
|
||||
{
|
||||
|
@ -126,12 +125,12 @@ function public_server_login($a, $b)
|
|||
function public_server_addon_admin_post(&$a)
|
||||
{
|
||||
BaseModule::checkFormSecurityTokenRedirectOnError('/admin/addons/publicserver', 'publicserver');
|
||||
$expiredays = (!empty($_POST['expiredays']) ? Strings::escapeTags(trim($_POST['expiredays'])) : '');
|
||||
$expireposts = (!empty($_POST['expireposts']) ? Strings::escapeTags(trim($_POST['expireposts'])) : '');
|
||||
$nologin = (!empty($_POST['nologin']) ? Strings::escapeTags(trim($_POST['nologin'])) : '');
|
||||
$flagusers = (!empty($_POST['flagusers']) ? Strings::escapeTags(trim($_POST['flagusers'])) : '');
|
||||
$flagposts = (!empty($_POST['flagposts']) ? Strings::escapeTags(trim($_POST['flagposts'])) : '');
|
||||
$flagpostsexpire = (!empty($_POST['flagpostsexpire']) ? Strings::escapeTags(trim($_POST['flagpostsexpire'])) : '');
|
||||
$expiredays = (!empty($_POST['expiredays']) ? trim($_POST['expiredays']) : '');
|
||||
$expireposts = (!empty($_POST['expireposts']) ? trim($_POST['expireposts']) : '');
|
||||
$nologin = (!empty($_POST['nologin']) ? trim($_POST['nologin']) : '');
|
||||
$flagusers = (!empty($_POST['flagusers']) ? trim($_POST['flagusers']) : '');
|
||||
$flagposts = (!empty($_POST['flagposts']) ? trim($_POST['flagposts']) : '');
|
||||
$flagpostsexpire = (!empty($_POST['flagpostsexpire']) ? trim($_POST['flagpostsexpire']) : '');
|
||||
DI::config()->set('public_server', 'expiredays', $expiredays);
|
||||
DI::config()->set('public_server', 'expireposts', $expireposts);
|
||||
DI::config()->set('public_server', 'nologin', $nologin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue