At 01:20 PM 09/26/2001, Kenny Pyatt wrote:
>[Wed Sep 26 12:07:44 2001] index.cgi: Use of uninitialized value in 
>string eq at Engine.pm line 26
>
>22:     # Get the cookie
>23:     $cookieValue = $req->cookie("userID");
>24:
>25:     # Test to see if the cookie was set
>26:     if ($cookieValue eq "")

You should use this instead, which properly handles $req->cookie 
returning undef
if ((!defined($cookieValue)) || ($cookieValue eq ""))

-- 
Greg Marr
[EMAIL PROTECTED]
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to