diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:12:12 -0400 |
commit | c9aa36da061816dee256a979c2ff8d2ee41824d9 (patch) | |
tree | 29f7002b80ee984b488bd047dbbd80b36bf892e9 /includes/OutputHandler.php | |
parent | b4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff) | |
parent | d1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff) |
Merge branch 'archwiki'
# Conflicts:
# skins/ArchLinux.php
# skins/ArchLinux/archlogo.gif
Diffstat (limited to 'includes/OutputHandler.php')
-rw-r--r-- | includes/OutputHandler.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/includes/OutputHandler.php b/includes/OutputHandler.php index 65bb86e7..b0bbcddb 100644 --- a/includes/OutputHandler.php +++ b/includes/OutputHandler.php @@ -23,7 +23,7 @@ /** * Standard output handler for use with ob_start * - * @param $s string + * @param string $s * * @return string */ @@ -96,7 +96,7 @@ function wfRequestExtension() { * Handler that compresses data with gzip if allowed by the Accept header. * Unlike ob_gzhandler, it works for HEAD requests too. * - * @param $s string + * @param string $s * * @return string */ @@ -147,7 +147,7 @@ function wfGzipHandler( $s ) { /** * Mangle flash policy tags which open up the site to XSS attacks. * - * @param $s string + * @param string $s * * @return string */ @@ -163,10 +163,13 @@ function wfMangleFlashPolicy( $s ) { /** * Add a Content-Length header if possible. This makes it cooperate with squid better. * - * @param $length int + * @param int $length */ function wfDoContentLength( $length ) { - if ( !headers_sent() && isset( $_SERVER['SERVER_PROTOCOL'] ) && $_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.0' ) { + if ( !headers_sent() + && isset( $_SERVER['SERVER_PROTOCOL'] ) + && $_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.0' + ) { header( "Content-Length: $length" ); } } @@ -174,7 +177,7 @@ function wfDoContentLength( $length ) { /** * Replace the output with an error if the HTML is not valid * - * @param $s string + * @param string $s * * @return string */ |