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

reparse bbcode changes topic poster to guest

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Resolution: Fixed
    • Component/s: Support Toolkit
    • Labels:
      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

            • Assignee:
              Erik Frèrejean Erik Frèrejean
              Reporter:
              lironteh lironteh [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: