[RADIATOR] HTTP Log
    Adam Bishop 
    Adam.Bishop at ja.net
       
    Thu Jan 13 09:30:22 CST 2011
    
    
  
Hello,
At high trace levels the log can accumulate characters that are "Special" to HTML, such as < and >.  This can cause a few display issues with the HTTP log display.
At the end of this message is a single line patch to escape the offending characters before they are emitted.  Logging to text file/sql/syslog is unaffected.
Adam Bishop
JANET(UK)
--- ServerHTTP.pm.old 2011-01-13 14:27:58.000000000 +0000
+++ ServerHTTP.pm 2011-01-13 14:36:37.000000000 +0000
@@ -1469,6 +1469,9 @@
  $log .= $self->{parent}->{log}[$i] . "\n"
     if defined $self->{parent}->{log}[$i];
     }
+
+    $log = CGI::Util::simple_escape($log);
+
     $self->send_standard(<<"EOF"
 This page shows the last $self->{parent}->{LogMaxLines} log messages recorded by
 this Radiator. It can be useful when checking or debugging your new configuration.
JANET(UK) is a trading name of The JNT Association, a company limited
by guarantee which is registered in England under No. 2881024 
and whose Registered Office is at Lumen House, Library Avenue,
Harwell Oxford, Didcot, Oxfordshire. OX11 0SG
    
    
More information about the radiator
mailing list