Add <!DOCTYPE html> to HTML responses
authorFomafix <fomafix@googlemail.com>
Sun, 25 Sep 2016 15:34:47 +0000 (17:34 +0200)
committerFomafix <fomafix@googlemail.com>
Sun, 25 Sep 2016 15:36:41 +0000 (17:36 +0200)
Change-Id: I080040913c4c9750104bc88b643a1ffdfd222502

includes/OutputPage.php
includes/WebRequest.php

index f5405d7..2933681 100644 (file)
@@ -2244,7 +2244,7 @@ class OutputPage extends ContextSource {
                                $response->header( "Content-Type: text/html; charset=utf-8" );
                                if ( $config->get( 'DebugRedirects' ) ) {
                                        $url = htmlspecialchars( $redirect );
-                                       print "<html>\n<head>\n<title>Redirect</title>\n</head>\n<body>\n";
+                                       print "<!DOCTYPE html>\n<html>\n<head>\n<title>Redirect</title>\n</head>\n<body>\n";
                                        print "<p>Location: <a href=\"$url\">$url</a></p>\n";
                                        print "</body>\n</html>\n";
                                } else {
index 0065135..c829ce0 100644 (file)
@@ -1099,6 +1099,7 @@ class WebRequest {
                header( 'Content-Type: text/html' );
                $encUrl = htmlspecialchars( $url );
                echo <<<HTML
+<!DOCTYPE html>
 <html>
 <head>
 <title>Security redirect</title>