mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Fixed seed bonus accrual (#1518)
* Fixed seed bonus accrual * Update CHANGELOG.md * Updated
This commit is contained in:
parent
5d56517504
commit
40b341cb62
10 changed files with 28 additions and 13 deletions
|
@ -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 = ['\\', '/', ':', '*', '?', '"', '<', '>', '|', ' '];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue