X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FOutputHandler.php;h=b3b3b889a70aef50030ab3dc886d128afc5d07cf;hb=50a12ff5ca4fa1bfcc6e4baaa10aa306ffd69812;hp=3860b8e2b384a69ab1526de947575f44baa2629c;hpb=2d44c97d9346d5a36e86fa31af86971fca4196d0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputHandler.php b/includes/OutputHandler.php index 3860b8e2b3..b3b3b889a7 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 */ @@ -94,7 +94,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 */ @@ -145,7 +145,7 @@ function wfGzipHandler( $s ) { /** * Mangle flash policy tags which open up the site to XSS attacks. * - * @param $s string + * @param string $s * * @return string */ @@ -161,10 +161,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" ); } } @@ -172,7 +175,7 @@ function wfDoContentLength( $length ) { /** * Replace the output with an error if the HTML is not valid * - * @param $s string + * @param string $s * * @return string */