Minor: Format code

pull/4698/head
Angel Fernando Quiroz Campos 2 years ago
parent 7ecc0c9cb0
commit 11cb862bb3
  1. 19
      main/inc/lib/security.lib.php
  2. 1
      main/inc/lib/usermanager.lib.php

@ -624,22 +624,23 @@ class Security
return $output; return $output;
} }
private static function generateSecTokenVariable(string $prefix = ''): string
{
if (empty($prefix)) {
return 'sec_token';
}
return $prefix.'_sec_token';
}
/** /**
* Sanitize a string, so it can be used in the exec() command without * Sanitize a string, so it can be used in the exec() command without
* "jail-breaking" to execute other commands. * "jail-breaking" to execute other commands.
*
* @param string $param The string to filter * @param string $param The string to filter
* @return string
*/ */
public static function sanitizeExecParam(string $param): string public static function sanitizeExecParam(string $param): string
{ {
return preg_replace('/[`;&|]/', '', $param); return preg_replace('/[`;&|]/', '', $param);
} }
private static function generateSecTokenVariable(string $prefix = ''): string
{
if (empty($prefix)) {
return 'sec_token';
}
return $prefix.'_sec_token';
}
} }

@ -4558,7 +4558,6 @@ class UserManager
* *
* @param int|null $status Status of users to be counted * @param int|null $status Status of users to be counted
* @param int|null $access_url_id Access URL ID (optional) * @param int|null $access_url_id Access URL ID (optional)
* @param int|null $active
* *
* @return mixed Number of users or false on error * @return mixed Number of users or false on error
*/ */

Loading…
Cancel
Save