Mailinglist Archive: opensuse-buildservice (354 mails)

< Previous Next >
[opensuse-buildservice] HTML encoding and build log (PATCH)
  • From: Dirk Stoecker <opensuse@xxxxxxxxxxxx>
  • Date: Wed, 14 Feb 2007 11:29:53 +0100 (CET)
  • Message-id: <Pine.LNX.4.64.0702141125030.5161@xxxxxxxxxxxxxxxxx>
Hello,

I finally found my missing texts in build log.

attached is a patch, which does entity encoding for the pre-formatted text
in build log display (blame on you it as not already there! :-).

I was not able to fix the "Refresh looses carriage return sometimes"
problem. The webclient code looks correct to me. Maybe the problem is in
website and API interaction (e.g. the return gets stripped when removing
the HTML headers).

Ciao
--
http://www.dstoecker.eu/ (PGP key available)Index: app/controllers/package_controller.rb
===================================================================
--- app/controllers/package_controller.rb (Revision 1233)
+++ app/controllers/package_controller.rb (Arbeitskopie)
@@ -438,6 +438,7 @@
begin
@log_chunk = frontend.get_log_chunk( @project, @package, @repo, @arch )
@offset = @log_chunk.length
+ @log_chunk = CGI.escapeHTML(@log_chunk);
rescue ActiveXML::Transport::Error => ex
@log_chunk = "No log available."
return
@@ -465,6 +466,7 @@
@finished = true
else
@offset += @log_chunk.length
+ @log_chunk = CGI.escapeHTML(@log_chunk);
end

rescue ActiveXML::Transport::Error => ex
< Previous Next >
Follow Ups