From: Fomafix Date: Sun, 25 Sep 2016 15:34:47 +0000 (+0200) Subject: Add to HTML responses X-Git-Tag: 1.31.0-rc.0~4556^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22upgrade%22%2C%22reinstall=non%22%29%20.%20%22?a=commitdiff_plain;h=e101fa901bda7da024035cf2ced89c8cf41f46c9;p=lhc%2Fweb%2Fwiklou.git Add to HTML responses Change-Id: I080040913c4c9750104bc88b643a1ffdfd222502 --- 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