Trim spaces from config file to avoid unwanted outpu (path #1431566, thanks to Piotr_Skowronek - piotr_skowronek).
This commit is contained in:
@@ -348,10 +348,10 @@ class PMA_Config
|
||||
$old_error_reporting = error_reporting(0);
|
||||
if ( function_exists('file_get_contents') ) {
|
||||
$eval_result =
|
||||
eval( '?>' . file_get_contents($this->getSource()) );
|
||||
eval( '?>' . trim(file_get_contents($this->getSource())) );
|
||||
} else {
|
||||
$eval_result =
|
||||
eval( '?>' . implode('\n', file($this->getSource())) );
|
||||
eval( '?>' . trim(implode('\n', file($this->getSource()))) );
|
||||
}
|
||||
error_reporting($old_error_reporting);
|
||||
|
||||
|
Reference in New Issue
Block a user