[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/ -> OutputHandler.php (summary)

Functions to be used with PHP's output buffer. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 238 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  wfOutputHandler()
  wfRequestExtension()
  wfGzipHandler()
  wfMangleFlashPolicy()
  wfDoContentLength()
  wfHtmlValidationHandler()

Functions
Functions that are not part of a class:

wfOutputHandler( $s )   X-Ref
Standard output handler for use with ob_start

param: string $s
return: string

wfRequestExtension()   X-Ref
Get the "file extension" that some client apps will estimate from
the currently-requested URL.
This isn't on WebRequest because we need it when things aren't initialized

return: string

wfGzipHandler( $s )   X-Ref
Handler that compresses data with gzip if allowed by the Accept header.
Unlike ob_gzhandler, it works for HEAD requests too.

param: string $s
return: string

wfMangleFlashPolicy( $s )   X-Ref
Mangle flash policy tags which open up the site to XSS attacks.

param: string $s
return: string

wfDoContentLength( $length )   X-Ref
Add a Content-Length header if possible. This makes it cooperate with squid better.

param: int $length

wfHtmlValidationHandler( $s )   X-Ref
Replace the output with an error if the HTML is not valid

param: string $s
return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1