[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] [PATCH]: Infinite recursion with SQL database
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting Stefan Hornburg (racke@linuxia.de):
>
>
> This rather simple patch fixes infinite recursion, which
> occurs if you have passed the wrong password for a SQL
> database. It don't know about possible side effects,
> but IMHO it is better than MV eating all memory on a server.
>
> --- lib/Vend/Data.pm 2000/04/02 10:20:34 1.2
> +++ lib/Vend/Data.pm 2000/06/08 12:08:40
> @@ -773,7 +773,7 @@
>
> if($@) {
> #::logDebug("Dieing of $@");
> - die $@ unless $no_import;
> + die $@; # unless $no_import;
> if(! -f $database_dbm) {
> $Vend::ForceImport{$obj->{name}} = 1;
> return import_database($obj);
>
I will look at a fix; this will definitely have side effects.
--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>
I have a cop friend who thinks he ought be able to give a new ticket;
"too dumb for conditions".
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list