Koozali.org: home of the SME Server

Applying a patch

Chris-M

Applying a patch
« on: January 07, 2004, 04:25:49 PM »
Hi, I have just recieved the following via E-mail following a bug report.

diff -u -r1.21 -r1.22
--- viewlogfiles        9 Jul 2003 16:15:20 -0000       1.21
+++ viewlogfiles        7 Jan 2004 01:17:14 -0000       1.22
@@ -35,6 +35,7 @@
 use esmith::cgi;
 use esmith::Tai64n;
 use File::Basename;
+use HTML::Entities;
 use CGI;

 use constant TRUE  => 1;
@@ -276,7 +277,7 @@
         $somethingMatched = 1;

         $_ = $tai64n->tai64nlocal($_) . "\n";
-        $_ = $q->escapeHTML($_);
+        $_ = HTML::Entities::encode_entities($_);
         (defined $highlightPattern && /$highlightPattern/)
         ? print "$_"
         : print;

How do I go about running it?

Cheers
-Chris