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

PHP notice when disallow file extension of posted attachment while debug enabled

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.2, 3.1.12
    • Fix Version/s: None
    • Component/s: ACP
    • Labels:
      None

      Description

      1) Enable DEBUG mode by adding the relevant line to config.php:

       

      @define('DEBUG', true);

      2) Post some attachment with allowed file extension, f.e. .zip

      3) Disallow that example zip file extension

      4) Enter the Manage attachments ACP module and get PHP notice like

      [phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_attachments.php on line 1273: Undefined index: zip

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rxu rxu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: