From e101fa901bda7da024035cf2ced89c8cf41f46c9 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sun, 25 Sep 2016 17:34:47 +0200 Subject: [PATCH] Add to HTML responses Change-Id: I080040913c4c9750104bc88b643a1ffdfd222502 --- includes/OutputPage.php | 2 +- includes/WebRequest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index f5405d79e1..2933681b3e 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 "\n\nRedirect\n\n\n"; + print "\n\n\nRedirect\n\n\n"; print "

Location: $url

\n"; print "\n\n"; } else { diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 0065135ae0..c829ce0452 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -1099,6 +1099,7 @@ class WebRequest { header( 'Content-Type: text/html' ); $encUrl = htmlspecialchars( $url ); echo << Security redirect -- 2.20.1