aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 6cd35bfd7f..55725b2cfd 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1409,7 +1409,8 @@ function avatar_upload($data, &$error)
$destination = '';
}
- $file->move_file($destination);
+ // Move file and overwrite any existing image
+ $file->move_file($destination, true);
if (sizeof($file->error))
{