mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
Use only exact lenghth matches
This commit is contained in:
@@ -116,7 +116,7 @@ class ReleaseFile extends Model
|
||||
'updated_at' => now()->timestamp,
|
||||
'passworded' => $hasPassword,
|
||||
'crc32' => $crc,
|
||||
'ishashed' => preg_match('/[a-fA-F0-9]{32}|[a-fA-F0-9]{40}|[a-fA-F0-9]{64}/i', $name) ? 1 : 0,
|
||||
'ishashed' => preg_match('/^[a-fA-F0-9]{32}\b|^[a-fA-F0-9]{40}\b|^[a-fA-F0-9]{64}\b/i', $name) ? 1 : 0,
|
||||
]);
|
||||
} catch (\PDOException $e) {
|
||||
Log::alert($e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user