Fixed seed bonus accrual (#1518)

* Fixed seed bonus accrual

* Update CHANGELOG.md

* Updated
This commit is contained in:
Roman Kelesidis 2024-06-17 20:50:08 +07:00 committed by GitHub
commit 40b341cb62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 28 additions and 13 deletions

View file

@ -245,6 +245,11 @@ function mkdir_rec($path, $mode): bool
return mkdir_rec(dirname($path), $mode) && mkdir($path, $mode);
}
function verify_id($id, $length): bool
{
return (is_string($id) && preg_match('#^[a-zA-Z0-9]{' . $length . '}$#', $id));
}
function clean_filename($fname)
{
static $s = ['\\', '/', ':', '*', '?', '"', '<', '>', '|', ' '];