Uploaded image for project: 'Support Team Tools'
  1. Support Team Tools
  2. STT-260

reparse bbcode changes topic poster to guest

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Unverified Fix
    • Resolution: Fixed
    • Support Toolkit
    • None

    Description

      This problem can be found in version 1.0.4, because the function submit_post is used with an empty username.

      Take a look at the source code:
      submit_post('edit', $this->data['post_subject'], $this->data['post_username'], …

      The var 'post_username' is only set, when the username is Anonymous, otherwise it is empty. It seems the function submit_post converts empty names to guest an writes this to the topics table.

      solution:
      $username = ($this->data['post_username'] == 'Anonymous') ? $this->data['post_username'] : $this->data['username'];
      submit_post('edit', $this->data['post_subject'], $username, $this->data['topic_type'], $this->poll, $post_data, true, true);

      Attachments

        Activity

          People

            Erik Frèrejean Erik Frèrejean
            lironteh lironteh [X] (Inactive)
            Archiver:
            Noxwizard Patrick Webster

            Dates

              Created:
              Updated:
              Resolved:
              Archived: