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

Users are able to get the real filename of attachment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.11-RC1
    • 3.0.10
    • Viewing posts
    • None

      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.

            bantu Andreas Fischer [X] (Inactive)
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: