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

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


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
-- 
Ulrich Leodolter <ulrich.leodolter@xxxxxxxx>
OBVSG


------------------------------------------------------------------------------
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.