Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Mar 2004 05:20:19 -0800 (PST)
From:      Vladimir Chukharev <chu@h33.erkki.ton.tut.fi>
To:        freebsd-www@FreeBSD.org
Subject:   Re: www/63551: Lack of DTD  in cgi scripts [PATCH]
Message-ID:  <200403071320.i27DKJ8G053551@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR www/63551; it has been noted by GNATS.

From: Vladimir Chukharev <chu@h33.erkki.ton.tut.fi>
To: freebsd-gnats-submit@FreeBSD.org, chu@gpi.ru
Cc:  
Subject: Re: www/63551: Lack of DTD  in cgi scripts [PATCH]
Date: Sun, 07 Mar 2004 15:12:42 +0200

 ------------ne1qBoF2dYDejwNaXmfGtu
 Content-Type: text/plain; format=flowed; charset=iso-8859-1
 Content-Transfer-Encoding: 8bit
 
 The attached patch, applied in /usr/www/en/cgi/ makes the pages,
 generated by cgi scripts valid HTML 4.01 Transitional
 
 Best regards,
 V. Chukharev
 ------------ne1qBoF2dYDejwNaXmfGtu
 Content-Disposition: attachment; filename=cgi-style.patch
 Content-Type: application/octet-stream; name=cgi-style.patch
 Content-Transfer-Encoding: 8bit
 
 --- cgi-style.pl.orig	Fri Dec 29 11:24:40 2000
 +++ cgi-style.pl	Sun Mar  7 14:56:01 2004
 @@ -47,7 +47,9 @@
      local ($title) = @_;
  
      return "Content-type: text/html\n\n" . 
 +	'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' .
  	"<html>\n<head><title>$title</title>\n" .
 +	'<meta http-equiv="CONTENT-TYPE" content="text/html; charset=ISO-8859-1">' .
  	    "<meta name=\"robots\" content=\"nofollow\">\n</head>\n$t_body\n" .
  	"$i_topbar <h1><font color=\"#660000\">$title</font></h1>\n";
  }
 
 ------------ne1qBoF2dYDejwNaXmfGtu--
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403071320.i27DKJ8G053551>