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
f995d0db12
commit
e258885344
@ -1005,9 +1005,10 @@ class attach_parent
|
|||||||
$this->attach_filename = rawurlencode($this->attach_filename);
|
$this->attach_filename = rawurlencode($this->attach_filename);
|
||||||
$this->attach_filename = preg_replace("/(%[0-9A-F]{1,2})/i", '', $this->attach_filename);
|
$this->attach_filename = preg_replace("/(%[0-9A-F]{1,2})/i", '', $this->attach_filename);
|
||||||
$this->attach_filename = trim($this->attach_filename . '_' . TIMENOW);
|
$this->attach_filename = trim($this->attach_filename . '_' . TIMENOW);
|
||||||
|
// Other
|
||||||
|
$this->attach_filename = str_replace(array('&','&',' '), '_', $this->attach_filename);
|
||||||
|
$this->attach_filename = str_replace('php', '_php_', $this->attach_filename);
|
||||||
}
|
}
|
||||||
$this->attach_filename = str_replace(array('&','&',' '), '_', $this->attach_filename);
|
|
||||||
$this->attach_filename = str_replace('php', '_php_', $this->attach_filename);
|
|
||||||
|
|
||||||
$new_physical_filename = '';
|
$new_physical_filename = '';
|
||||||
for ($i=0, $max_try=5; $i <= $max_try; $i++)
|
for ($i=0, $max_try=5; $i <= $max_try; $i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user