aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions_upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index 774b359dee..56fb295d59 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -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));
}
}
}