Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Is this a know bug

Quote Reply
Is this a know bug
I have a problem with my forum and private messages.

When a user is not logged in and is sent a message with a link to a new private messge. e.g.

www.site.com/cgi-bin/forum/gforum.cgi?do=message_view;message=1005

The user is prompted to log in as expected.

When the user logs in he should then be forwarded to his/her message.

This doesnt happen. The redirect url changes to www.site.com/cgi-bin/forum/gforum.cgi?message=1005

and therefore just shows the forum. It is missing do=message_view;

Is this a known bug? What is wrong here?

Cat xxx
Quote Reply
Re: [catlovette] Is this a know bug In reply to
Yes, this is a bug of sorts. GForum is expecting that gforum.cgi will handle a URL such as gforum.cgi?message=1234 without needing the do=message_view part - but gforum.cgi isn't handling it. You can fix it yourself by editing gforum.cgi, around line 130-135, there is this code:

Code:
$do =
$IN->param('forum') ? 'forum_view' :
$IN->param('post') ? 'post_view' :
$IN->param('message') ? 'message_view' :
$IN->param('user') || $IN->param('username') ? 'user_view' :
$IN->param('url') ? 'url' :

You can fix the bug by adding the line in red.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com