diff --git a/ChangeLog b/ChangeLog index 307c35170..1ca4b2ed7 100755 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ $Source$ * db_details.php3; tbl_properties.php3: patch from Joshua Nye to get valid statistics whatever are the table types. + * read_dump.php3, lines 245-249: fixed bug #521003 - parse error. 2002-02-19 Marc Delisle * libraries/common.lib.php3: get_magic_quotes fix thanks to diff --git a/read_dump.php3 b/read_dump.php3 index 0eb0c1b4c..c7b9ebced 100644 --- a/read_dump.php3 +++ b/read_dump.php3 @@ -242,11 +242,10 @@ if ($sql_file != 'none') { if (!empty($open_basedir)) { // check if '.' is in open_basedir - $pos = strpos($open_basedir, '.'); + $pos = strpos(' ' . $open_basedir, '.'); // from the PHP annotated manual - if ( (PMA_PHP_INT_VERSION < 40000 && is_integer($pos) && !$pos) - || (PMA_PHP_INT_VERSION >= 40000 && $pos === false) ) { + if (!$pos) { // if no '.' in openbasedir, do not move the file, force the // error and let PHP report it error_reporting(E_ALL);