Hide message for DBUnexpectedError exceptions
authorKevin Israel <pleasestand@live.com>
Sun, 13 Oct 2013 12:09:36 +0000 (08:09 -0400)
committerKevin Israel <pleasestand@live.com>
Wed, 5 Mar 2014 00:59:57 +0000 (19:59 -0500)
commitd6a9f3a2f226de11156a94769acee11ed1b8d68e
treef5be6b39b5afdde855487de8c4a7c9076c78bd7c
parent35d5ee18b117e643649257bce582c27a43e86abc
Hide message for DBUnexpectedError exceptions

DBUnexpectedErrors are now treated like most other exceptions; we now
hide the error messages (which could contain sensitive information
such as IP addresses) unless $wgShowExceptionDetails is true.

In that case, the messages (and redacted backtraces) would be shown
even if $wgShowDBErrorBacktrace is false, though hiding them would
add complexity to the exception handler for little benefit.

Bug: 26811
Change-Id: I063c241975ce5b12a04abc21821ac67c716b3d5e
RELEASE-NOTES-1.23
includes/AutoLoader.php
includes/DefaultSettings.php
includes/db/DatabaseError.php