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

Re: logos left in /tmp



On Fri, Apr 24, 2009 at 1:17 AM, Maanus Kask <..hidden..> wrote:
> Hi,
>
> How can I prevent ledgersmb lefting logo.* files in /tmp/ after
> printing invoices?
>
> There is problem as soon as at least one company does not have a logo,
> then he gets someone else's logo in his invoice instead.

You could add an unlink call to LedgerSMB Form.pm (approx line 1013),
right after:

if ( $self->{format} =~ /(postscript|pdf)/ || $self->{media} eq 'email' ) {

and before:

if ( $self->{media} eq 'email' ) {

We may want to add this to fixes for 1.2.19.

Best Wishes,
Chris Travers