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

Modify attachment's poster_id for get_submitted_attachment_data

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.2.4
    • 3.2.5-RC1
    • Events
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: