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

Modify attachment's poster_id for get_submitted_attachment_data

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.5-RC1
    • 3.2.4
    • Events
    • PHP 7.1.7, MySQL 5.6.34, Firefox 62.0.2

      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.

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

              Created:
              Updated:
              Resolved: