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

Modify attachment's poster_id for get_submitted_attachment_data

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Unverified Fix (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.4
    • Fix Version/s: 3.2.5-RC1
    • Component/s: Events
    • Labels:
    • Environment:
      PHP 7.1.7, MySQL 5.6.34, Firefox 62.0.2

      Description

      Currently, $post_data['poster_id'] is used in

      $message_parser->get_submitted_attachment_data($post_data['poster_id']);

      in posting.php, line 614.

      Because of the nature of my anonymous posts extension, the poster_id is still 1 at this stage.  When users edit posts, they receive a "You are not allowed to access this file." backtrace error.  Allowing this var to be modified by an event would solve this problem for me, and anyone else who wants guests to be able to use attachments.

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              Toxyy Toxyy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: