- check_form_security_token_redirectOnErr('/admin/addons/publicserver', 'publicserver');
- $expiredays = (x($_POST, 'expiredays') ? notags(trim($_POST['expiredays'])) : '');
- $expireposts = (x($_POST, 'expireposts') ? notags(trim($_POST['expireposts'])) : '');
- $nologin = (x($_POST, 'nologin') ? notags(trim($_POST['nologin'])) : '');
- $flagusers = (x($_POST, 'flagusers') ? notags(trim($_POST['flagusers'])) : '');
- $flagposts = (x($_POST, 'flagposts') ? notags(trim($_POST['flagposts'])) : '');
- $flagpostsexpire = (x($_POST, 'flagpostsexpire') ? notags(trim($_POST['flagpostsexpire'])) : '');
+ 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'])) : '');