Update posting_attachments.php

This commit is contained in:
Roman Kelesidis 2024-02-08 16:08:00 +07:00
parent f995d0db12
commit e258885344

View File

@ -1005,9 +1005,10 @@ class attach_parent
$this->attach_filename = rawurlencode($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);
}
// Other
$this->attach_filename = str_replace(array('&','&',' '), '_', $this->attach_filename);
$this->attach_filename = str_replace('php', '_php_', $this->attach_filename);
}
$new_physical_filename = '';
for ($i=0, $max_try=5; $i <= $max_try; $i++)