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

Feeds do link to guest profiles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.7
    • 3.0.6
    • Other
    • None
    • PHP Environment:
      Database:

      Hello,

      The feed.php code does not check if the poster was anonymous before it will build the link to profile.

      Fix could look like replace :

      			$user_link = '<a href="' . feed_append_sid('/memberlist.' . $phpEx, 'mode=viewprofile&amp;u=' . $row['user_id']) . '">' . $row['username'] . '</a>';

      with :

      			$user_link = $row['user_id'] != ANONYMOUS ? '<a href="' . feed_append_sid('/memberlist.' . $phpEx, 'mode=viewprofile&amp;u=' . $row['user_id']) . '">' . $row['username'] . '</a>' : $row['username'];

      and so on for the other prfile links.

      Regards,

      dcz

            nickvergessen Joas Schilling
            dcz dcz [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: