[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parameters taintness


On Mon, Apr 21, 2008 at 2:53 PM, Eli Shemer <suppressed> wrote:
> I summed it down to this line of code
>
>  my $id = $cookies{ANONYMOUS_ID}->value;
>  if ($id =~ m/(.+)/) { $id=$1; }
>
>  tie %session, 'Apache::Session::MySQL', $id,
>  {
>   Handle     => $dbh,
>   LockHandle => $dbh
>  };

You need to wrap that tie call in an eval, as shown in the
Apache::Session documentation.  If it hangs rather than just failing,
the problem most likely has to do with the locking behavior.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.