# Think of it as a key. Change it often to avoid any abuse.
# The description will be used in the log files
const UPLOAD_SECRET = array(
- 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #1',
- 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #2'
- )
+ 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #1',
+ 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #2'
);
*
* @param string $input The string to check
* @param string $mode How the string should be checked
- * @param mixed $limit If int given the string is checked for length
+ * @param string $limit If int given the string is checked for length
*
* @return bool
*
* the replace should be empty, otherwise are there chars which are not
* allowed
*/
- static function validate(string $input, string $mode='text', mixed $limit=false): bool {
+ static function validate(string $input, string $mode='text', string $limit=''): bool {
// check if we have input
$input = trim($input);