www/63551: Lack of DTD in cgi scripts [PATCH]
Vladimir Chukharev
chu at h33.erkki.ton.tut.fi
Sun Mar 7 05:20:21 PST 2004
The following reply was made to PR www/63551; it has been noted by GNATS.
From: Vladimir Chukharev <chu at h33.erkki.ton.tut.fi>
To: freebsd-gnats-submit at FreeBSD.org, chu at 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--
More information about the freebsd-www
mailing list