feat(announcer): Added is_numeric() checking for some fields (#1766)

This commit is contained in:
Roman Kelesidis 2025-01-16 16:09:34 +03:00 committed by GitHub
commit 096bb5124f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -68,7 +68,7 @@ if (!empty($info_hash_count)) {
/**
* Currently torrent clients send truncated v2 hashes (the design raises questions).
* https://github.com/bittorrent/bittorrent.org/issues/145#issuecomment-1720040343
* @see https://github.com/bittorrent/bittorrent.org/issues/145#issuecomment-1720040343
*/
$info_hash_where = "tor.info_hash IN ('$info_hashes_sql') OR SUBSTRING(tor.info_hash_v2, 1, 20) IN ('$info_hashes_sql')";