Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10633

Users are able to get the real filename of attachment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.10
    • Fix Version/s: 3.0.11-RC1
    • Component/s: Viewing posts
    • Labels:
      None

      Description

      download/files.php uses 't' parameter to handle thumbnail output.
      If you apply, say, 't=1' to the URL of an attachment which has no thumbnail (any non-image file really), you'll get an error like:
      The file ./../files/thumb_279389_a6b20004e677bf2eeb23f337cf02c6ac does not exist.
      Since thumbnail filename consists of the thumb_ prefix plus file's physical_filename, you'll get the real attachment filename as files/279389_a6b20004e677bf2eeb23f337cf02c6ac.

        Activity

        Hide
        Oleg Oleg [X] (Inactive) added a comment -

        Users certainly don't need the file path for anything, if admins want it we should put it into the error log.

        Show
        Oleg Oleg [X] (Inactive) added a comment - Users certainly don't need the file path for anything, if admins want it we should put it into the error log.
        Hide
        brunoais brunoais added a comment -

        Nothing to really test.

        Show
        brunoais brunoais added a comment - Nothing to really test.

          People

          • Assignee:
            bantu Andreas Fischer
            Reporter:
            rxu Ruslan Uzdenov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development