aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r--phpBB/includes/functions_upload.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index cd35254b28..6b5d043bae 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -138,7 +138,7 @@ class filespec
/**
* Check if the file got correctly uploaded
*
- * @return true if it is a valid upload and the file exist, false if not
+ * @return true if it is a valid upload, false if not
*/
function is_uploaded()
{
@@ -147,7 +147,12 @@ class filespec
return false;
}
- return (file_exists($this->filename)) ? true : false;
+ if ($this->local && !file_exists($this->filename))
+ {
+ return false;
+ }
+
+ return true;
}
/**