mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-15 02:55:04 +00:00
3023f55605
Line 334 of Cite/includes/Cite.php contains two preg_match () calls. The subject lines for them are produced by Cite::refArgs () and are set to null or false when no name or follow attribute is provided in the <ref></ref> tag. However, preg_match () is supposed to accept only strings as its subject, and the nowhere in the documentation it is said that it is nullable. At least, in HHVM 3.12 this causes an exception. The enclosed patch adds simple checks making sure that preg_match () is not called when $key or $follow are null or false. Change-Id: I3e00d31d6bf216271ace7e851d88c68c4fd5ed00 |
||
---|---|---|
.. | ||
ApiQueryReferences.php | ||
Cite.php | ||
CiteCSSFileModule.php | ||
CiteDataModule.php | ||
CiteHooks.php |