diff --git a/ChangeLog b/ChangeLog index 29a2146d2..ec5ab53cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1906983 [export] Reimport of FUNCTION fails - bug #1919808 [operations] Renaming a database fails to handle functions - bug #1934401 [core] Cannot force a language +- bug #1944077 [core] Config file containing a BOM, + thanks to Gaetano Giunta - ggiunta 2.11.5.1 (2008-03-29) - bug #1909711 [security] Sensitive data in session files diff --git a/libraries/Config.class.php b/libraries/Config.class.php index 0dd6ad46a..62168a012 100644 --- a/libraries/Config.class.php +++ b/libraries/Config.class.php @@ -372,6 +372,8 @@ class PMA_Config * Parses the configuration file */ $old_error_reporting = error_reporting(0); + // avoid "headers already sent" error when file contains a BOM + ob_start(); if (function_exists('file_get_contents')) { $eval_result = eval('?>' . trim(file_get_contents($this->getSource()))); @@ -379,6 +381,7 @@ class PMA_Config $eval_result = eval('?>' . trim(implode("\n", file($this->getSource())))); } + ob_end_clean(); error_reporting($old_error_reporting); if ($eval_result === false) {