MediaWiki REL1_34
|
Static Public Member Functions | |
static | handle ( $s) |
Standard output handler for use with ob_start. | |
Static Private Member Functions | |
static | emitContentLength ( $length) |
Add a Content-Length header if possible. | |
static | findUriExtension () |
Get the "file extension" that some client apps will estimate from the currently-requested URL. | |
static | handleGzip ( $s) |
Handler that compresses data with gzip if allowed by the Accept header. | |
static | mangleFlashPolicy ( $s) |
Mangle flash policy tags which open up the site to XSS attacks. | |
Definition at line 28 of file OutputHandler.php.
|
staticprivate |
Add a Content-Length header if possible.
This makes it cooperate with CDN better.
int | $length |
Definition at line 150 of file OutputHandler.php.
|
staticprivate |
Get the "file extension" that some client apps will estimate from the currently-requested URL.
This isn't a WebRequest method, because we need it before the class loads.
Definition at line 61 of file OutputHandler.php.
References $path.
|
static |
Standard output handler for use with ob_start.
string | $s | Web response output |
Definition at line 35 of file OutputHandler.php.
References $s, $wgDisableOutputCompression, and $wgMangleFlashPolicy.
|
staticprivate |
Handler that compresses data with gzip if allowed by the Accept header.
Unlike ob_gzhandler, it works for HEAD requests too.
string | $s | Web response output |
Definition at line 89 of file OutputHandler.php.
References $ext, $header, $s, wfClientAcceptsGzip(), and wfDebug().
|
staticprivate |
Mangle flash policy tags which open up the site to XSS attacks.
string | $s | Web response output |
Definition at line 136 of file OutputHandler.php.
References $s.