Fix potential html injection when the database server isn't available (bug 26164).
authorPlatonides <platonides@users.mediawiki.org>
Mon, 29 Nov 2010 16:34:28 +0000 (16:34 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 29 Nov 2010 16:34:28 +0000 (16:34 +0000)
commit6e81d60086a6b431c363843f91376b2bb0fb1322
tree151fedd4ffe3a8c5a4596e740c77837d9f28f3fe
parent3dec73f653a4c34791a0ac40376d46cd18f97498
Fix potential html injection when the database server isn't available (bug 26164).

Wikis which set $wgServer in their LocalSettings or are in a virtual
host would never be vulnerable.
For sites which show the wiki in the default host, it will depend on how
forgiving is their webserver and php stack for that garbled input, although
some kind of foolable proxy —moreover wrongly caching errors (or the default
output buffering is disabled and something incorrectly sent a previous text)—
would also need to be present in order to make that useful for a
potential attacker.
RELEASE-NOTES
includes/Exception.php
includes/db/Database.php