wiki.techinc.nl/includes/utils
Tim Starling f12db38048 Better detection for old MS Office files
* Introduce MSCompoundFileReader, which reads the CFB directory and
  detects the file type from well-known names in the root directory
* Do not detect a ZIP file if the EOCDR is not at the end. Other
  containers, especially CFB files, may contain ZIP files embedded
  within them in the last 64KB, but this is not a security concern
  unless the EOCDR is exactly at the end of the file.

Bug: T40432
Change-Id: Id5b1a258ccf3c3c8951e32f6b7a5b1bafe941082
2019-01-23 09:23:17 +11:00
..
AutoloadGenerator.php
AvroValidator.php
BatchRowIterator.php
BatchRowUpdate.php
BatchRowWriter.php
ExecutableFinder.php
FileContentsHasher.php
MWCryptHKDF.php
MWCryptRand.php Hard deprecate functionality replaced with random_bytes() 2018-10-17 19:57:52 -07:00
MWFileProps.php Use PHP 7 '??' operator instead of if-then-else 2018-10-21 21:46:46 +02:00
MWRestrictions.php
README
RowUpdateGenerator.php
UIDGenerator.php Do not pass unused parameter 2018-12-01 18:08:56 +01:00
ZipDirectoryReader.php Better detection for old MS Office files 2019-01-23 09:23:17 +11:00
ZipDirectoryReaderError.php

The classes in this directory are general utilities for use by any part of
MediaWiki. They do not favour any particular user interface and are not
constrained to serve any particular feature. This is similar to includes/libs,
except that some dependency on the MediaWiki framework (such as the use of
MWException, Status or wfDebug()) disqualifies them from use outside of
MediaWiki without modification.

Utilities should not use global configuration variables, rather they should rely
on the caller to configure their behaviour.