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

Re: [Bacula-devel] Bweb.pm patch removes \0 from logtext before displayed as html


Hello,

Thanks you, this fix this strange mysql behavior.

Bye

Le Wednesday 10 December 2008 10:40:38 Ulrich Leodolter, vous avez écrit :
> Hi
>
> Bacula Log.LogText lines are terminated by \n\0.
> This small patch removes \0 when displayed as
> html (actually inside <pre> </pre>)
>
>
> $ svn diff Bweb.pm
> Index: Bweb.pm
> ===================================================================
> --- Bweb.pm	(revision 8106)
> +++ Bweb.pm	(working copy)
> @@ -4544,6 +4544,7 @@
>  	return $self->error("Can't get log for jobid $arg->{jobid}");
>      }
>
> +    $log->{logtxt} =~ s/\0//g;
>      $self->display({ lines=> $log->{logtxt},
>  		     nbline => $log->{nbline},
>  		     jobid => $arg->{jobid},
>
>
>
> Please patch SVN
> Ulrich



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilotco.