mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Check every release for codec spam
This commit is contained in:
@@ -856,7 +856,7 @@ class ProcessAdditional
|
||||
protected function _processCompressedData(string &$compressedData): bool
|
||||
{
|
||||
$this->_compressedFilesChecked++;
|
||||
// Give the data to archive info so it can check if it's a rar.
|
||||
// Give the data to archive info, so it can check if it's a rar.
|
||||
if (! $this->_archiveInfo->setData($compressedData, true)) {
|
||||
if (config('app.debug') === true) {
|
||||
$this->_debug('Data is probably not RAR or ZIP.');
|
||||
@@ -1063,9 +1063,7 @@ class ProcessAdditional
|
||||
}
|
||||
|
||||
// Check for "codec spam"
|
||||
if (preg_match('/alt\.binaries\.movies($|\.divx$)/', $this->_releaseGroupName) &&
|
||||
preg_match('/[\/\\\\]Codec[\/\\\\]Setup\.exe$/i', $file['name'])
|
||||
) {
|
||||
if (preg_match('/[\/\\\\]Codec[\/\\\\]Setup\.exe$/i', $file['name'])) {
|
||||
if (config('app.debug') === true) {
|
||||
$this->_debug('Codec spam found, setting release to potentially passworded.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user