Don't output Fatal(...) error messages unless debugging is on to avoid leaking info. Fixes #2459
This commit is contained in:
parent
02f09aad7f
commit
98e0a0d2c5
|
@ -455,7 +455,10 @@ function Error( $string ) {
|
|||
|
||||
function Fatal( $string ) {
|
||||
Logger::fetch()->logPrint( Logger::FATAL, $string );
|
||||
die( htmlentities($string) );
|
||||
if (Logger::fetch()->debugOn()) {
|
||||
echo(htmlentities($string));
|
||||
}
|
||||
exit(1);
|
||||
}
|
||||
|
||||
function Panic( $string ) {
|
||||
|
|
Loading…
Reference in New Issue