mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update posting_attachments.php
This commit is contained in:
parent
36663b5f74
commit
ecb80918af
@ -1030,7 +1030,7 @@ class attach_parent
|
||||
}
|
||||
}
|
||||
$this->attach_filename = $new_physical_filename;
|
||||
if (!empty($this->attach_filename) && is_numeric(FILENAME_MAX_LENGTH))
|
||||
if (!empty($this->attach_filename) && (FILENAME_PREFIX && is_numeric(FILENAME_MAX_LENGTH)))
|
||||
{
|
||||
$this->attach_filename = substr(trim($this->attach_filename), 0, FILENAME_MAX_LENGTH);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user