Gossamer Forum
Quote Reply
Bug
If you pass anything not valid to community.cgi - you get a fatal error...

Example
community.cgi?do=null

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] Bug In reply to
Hi,

Thanks, this is for debugging. We'll fix this up in the next beta.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [klauslovgreen] Bug In reply to
I solved this with following change.

Changed this code in Community::Web::User::process (User.pm file) :
Quote:
comm_fatal("Invalid action: $do");

to:
Quote:
($do = 'user_home') and do { user_home(); }

It will display the use home page if logged in, otherwise if NOT logged in the login page.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Bug In reply to
Your code has some problems, firstly = is an assignment operator not comparison. Also I don't see a need for do{}

Syntactically correct code would be:

Code:
$do eq 'user_home' and return user_home();
Quote Reply
Re: [Paul] Bug In reply to
You are right, Paul. If I'm wrong, I can acknowledge it, unlike you.

The correct code should be only this (nothing more is needed):
Quote:
user_home();
No need for compare.
BTW: I did not misused assignment operator as you mentioned. However I checked the code and I see there is no need for any assignment, nor comparison, nor return.
The code above should work.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...

Last edited by:

webmaster33: Feb 5, 2003, 2:54 PM
Quote Reply
Re: [webmaster33] Bug In reply to
Quote:
You are right, Paul. If I'm wrong, I can acknowledge it, unlike you.

Perhaps you should read post 35...

http://gossamer-threads.com/...;;page=unread#unread

I don't see any need for that tone. What I said was accurate, Im only saying what I see.
Quote Reply
Re: [Paul] Bug In reply to
Paul,

Yes, you did acknowledge in post #35. But I don't remember cases when you acknowledged your fault, in OUR conversations.

Just one example in this thread:
http://gossamer-threads.com/...orum.cgi?post=228881
You even not answered. However I don't bother about that.

Otherwise sorry about the tone I used now, you did not merit it in current case.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Bug In reply to
Give it a rest, this isn't relevant to the thread.