Fomafix has uploaded a new change for review. https://gerrit.wikimedia.org/r/312741
Change subject: Add <!DOCTYPE html> to HTML responses ...................................................................... Add <!DOCTYPE html> to HTML responses Change-Id: I080040913c4c9750104bc88b643a1ffdfd222502 --- M includes/OutputPage.php M includes/WebRequest.php 2 files changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/41/312741/1 diff --git a/includes/OutputPage.php b/includes/OutputPage.php index f5405d7..2933681 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2244,7 +2244,7 @@ $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 { diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 0065135..c829ce0 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -1099,6 +1099,7 @@ header( 'Content-Type: text/html' ); $encUrl = htmlspecialchars( $url ); echo <<<HTML +<!DOCTYPE html> <html> <head> <title>Security redirect</title> -- To view, visit https://gerrit.wikimedia.org/r/312741 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I080040913c4c9750104bc88b643a1ffdfd222502 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Fomafix <foma...@googlemail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits