Bug fix: do NOT display the call stack in case of error/exception since it may contain sensitive information.

SVN:2.1.0[3589]
This commit is contained in:
Denis Flaven
2015-06-05 13:52:07 +00:00
parent ed85260bb3
commit 17a8a896dc

View File

@@ -1732,8 +1732,7 @@ catch (Exception $e)
{
// note: transform to cope with XSS attacks
echo htmlentities($e->GetMessage(), ENT_QUOTES, 'utf-8');
echo "<p>Debug trace: <pre>".$e->getTraceAsString()."</pre></p>\n";
IssueLog::Error($e->getMessage());
IssueLog::Error($e->getMessage()."\nDebug trace:\n".$e->getTraceAsString()); // Do NOT display the call stack since it may contain sensitive information
}