Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-7501

Avatar not deleted when new with different extension uploaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.3
    • 3.0.1
    • None
    • PHP Environment: 5.2.5
      Database: MySQL 5.0.45

      Avatar filenames are constructed with:

      1. constant salt
      2. user/group id
      3. image extension

      phpBB assumes that, when a user submits a new avatar, the old one will be overwritten. This is not true when the old and new avatars have different extensions, e.g. GIF and PNG. It results that orphaned avatars may remain on the server.

      A check should be performed, whether the extensions are the same, and if not, delete the old avatar.

            Kellanved Kellanved [X] (Inactive)
            bonzon bonzon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: