Merge branch 'QA_4_6-security' into master-security

This commit is contained in:
Michal Čihař 2016-07-11 09:34:05 +02:00
commit 152386627a
2 changed files with 6 additions and 6 deletions

View File

@ -117,12 +117,17 @@ class Error extends Message
{
$result = array();
$members = array('file', 'line', 'function', 'class', 'type');
$members = array('line', 'function', 'class', 'type');
foreach ($backtrace as $idx => $step) {
/* Create new backtrace entry */
$result[$idx] = array();
/* Make path relative */
if (isset($step['file'])) {
$result[$idx]['file'] = Error::relPath($step['file']);
}
/* Store members we want */
foreach ($members as $name) {
if (isset($step[$name])) {

View File

@ -511,11 +511,6 @@ function PMA_sendHeaderLocation($uri, $use_refresh = false)
session_write_close();
if ($response->headersSent()) {
if (function_exists('debug_print_backtrace')) {
echo '<pre>';
debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
echo '</pre>';
}
trigger_error(
'PMA_sendHeaderLocation called when headers are already sent!',
E_USER_ERROR