mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 07:35:29 +02:00
do not use php5 function
git-svn-id: file:///svn/phpbb/trunk@5189 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
54bb90ca60
commit
80f2e7dd4b
@ -505,7 +505,7 @@ class fileupload
|
||||
|
||||
$host = $url['host'];
|
||||
$path = dirname($url['path']);
|
||||
$port = (!empty($url['port'])) ? $url['port'] : 80;
|
||||
$port = (!empty($url['port'])) ? (int) $url['port'] : 80;
|
||||
|
||||
$upload_ary['type'] = 'application/octet-stream';
|
||||
$upload_ary['name'] = basename($url['path']) . '.' . array_pop(explode('.', $url['path']));
|
||||
@ -542,7 +542,7 @@ class fileupload
|
||||
{
|
||||
if (strpos($line, 'Content-Type: ') !== false)
|
||||
{
|
||||
$upload_ary['type'] = rtrim(str_ireplace('Content-Type: ', '', $line));
|
||||
$upload_ary['type'] = rtrim(str_replace('Content-Type: ', '', $line));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user