Hi all,
I like that modx shows php errors only to the logged in manager. But MySQL errors are shown to the public on the frontpage. For me this is a huge security issue. Shouldn’t the document.parser.class.inc.php contain something like that?
Change starting from line 2619 (MODx 0.9.6)
// Display error
echo $parsedMessageString;
ob_end_flush();
into
// Display error
if(isset($_SESSION['mgrValidated']) AND $_SESSION['mgrValidated']) {
echo $parsedMessageString;
ob_end_flush();
}