From f34e4680dc1ac605751ad0637aa589a93e7a37af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 22 Feb 2002 12:32:57 +0000 Subject: [PATCH] fixed bug #521003 - read_dump.php3 -> parse error --- ChangeLog | 1 + read_dump.php3 | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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);