Convert the bgplg html pages to HTML5.
authorclaudio <claudio@openbsd.org>
Fri, 9 Feb 2024 12:56:53 +0000 (12:56 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 9 Feb 2024 12:56:53 +0000 (12:56 +0000)
From Clemens Gößnitzer (clemens (at) goessnitzer.info)
Looks good to bentley@

usr.bin/bgplg/bgplg.c
usr.bin/bgplg/bgplg.foot
usr.bin/bgplg/bgplg.head
usr.bin/bgplg/index.html

index fc825bc..09306ff 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: bgplg.c,v 1.19 2018/03/05 10:53:37 denis Exp $        */
+/*     $OpenBSD: bgplg.c,v 1.20 2024/02/09 12:56:53 claudio Exp $      */
 
 /*
  * Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@@ -260,17 +260,15 @@ main(void)
 
        printf("Content-Type: %s\n"
            "Cache-Control: no-cache\n\n"
-           "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
-           "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" "
-           "\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n"
-           "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
+           "<!doctype html>\n"
+           "<html>\n"
            "<head>\n"
            "<title>%s</title>\n",
            CONTENT_TYPE, myname);
        if (stat(INC_STYLE, &st) == 0) {
-               printf("<style type='text/css'><!--\n");
+               printf("<style>\n");
                lg_incl(INC_STYLE);
-               printf("--></style>\n");
+               printf("</style>\n");
        }
        if (stat(INC_HEAD, &st) != 0 || lg_incl(INC_HEAD) != 0) {
                printf("</head>\n"
@@ -308,8 +306,8 @@ main(void)
        }
 
        printf("</select>\n"
-           "<input type='text' value='%s' name='req'/>\n"
-           "<input type='submit' value='submit'/>\n"
+           "<input type='text' value='%s' name='req'>\n"
+           "<input type='submit' value='submit'>\n"
            "</div>\n"
            "</form>\n"
            "<pre>\n", req ? req : "");
index b31a9ed..05867ca 100644 (file)
@@ -2,5 +2,5 @@
 <body style="text-align: center">
 <div style="margin: 0px auto; text-align: left; width: 800px;">
 <a href="http://www.openbgp.org/">
-<img src="/bgplg/openbgpd.gif" alt="OpenBGPD"/>
+<img src="/bgplg/openbgpd.gif" alt="OpenBGPD">
 </a>
index 32bebcb..8aa6905 100644 (file)
@@ -1,9 +1,8 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
+<!doctype html>
+<html>
   <head>
     <title>bgplg...</title>
-    <meta http-equiv="refresh" content="1; URL=/cgi-bin/bgplg"/>
+    <meta http-equiv="refresh" content="1; URL=/cgi-bin/bgplg">
   </head>
   <body>
     <h1><a href="/cgi-bin/bgplg">bgplg...</a></h1>