Go to the source code of this file.
Functions | |
wfOutputHandler ($s) | |
Standard output handler for use with ob_start. | |
wfRequestExtension () | |
Get the "file extension" that some client apps will estimate from the currently-requested URL. | |
wfGzipHandler ($s) | |
Handler that compresses data with gzip if allowed by the Accept header. | |
wfMangleFlashPolicy ($s) | |
Mangle flash policy tags which open up the site to XSS attacks. | |
wfDoContentLength ($length) | |
Add a Content-Length header if possible. | |
wfHtmlValidationHandler ($s) | |
Replace the output with an error if the HTML is not valid. |
wfDoContentLength | ( | $ | length | ) |
Add a Content-Length header if possible.
This makes it cooperate with squid better.
Definition at line 116 of file OutputHandler.php.
References $_SERVER.
Referenced by wfOutputHandler().
wfGzipHandler | ( | $ | s | ) |
Handler that compresses data with gzip if allowed by the Accept header.
Unlike ob_gzhandler, it works for HEAD requests too.
Definition at line 63 of file OutputHandler.php.
References $_SERVER, $ext, $s, and wfRequestExtension().
Referenced by wfOutputHandler().
wfHtmlValidationHandler | ( | $ | s | ) |
Replace the output with an error if the HTML is not valid.
Definition at line 125 of file OutputHandler.php.
References $error, $i, $out, $s, MWTidy::checkErrors(), and xml.
Referenced by wfOutputHandler().
wfMangleFlashPolicy | ( | $ | s | ) |
Mangle flash policy tags which open up the site to XSS attacks.
Definition at line 104 of file OutputHandler.php.
References $s.
Referenced by wfOutputHandler().
wfOutputHandler | ( | $ | s | ) |
Standard output handler for use with ob_start.
Definition at line 6 of file OutputHandler.php.
References $name, $s, $wgDisableOutputCompression, $wgValidateAllHtml, wfDoContentLength(), wfGzipHandler(), wfHtmlValidationHandler(), and wfMangleFlashPolicy().
wfRequestExtension | ( | ) |
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
Definition at line 39 of file OutputHandler.php.
References $_SERVER, and $path.
Referenced by wfGzipHandler().