fixed bug #521003 - read_dump.php3 -> parse error
This commit is contained in:
@@ -14,6 +14,7 @@ $Source$
|
|||||||
* db_details.php3; tbl_properties.php3: patch from Joshua Nye
|
* db_details.php3; tbl_properties.php3: patch from Joshua Nye
|
||||||
<josh at boxcarmedia.com> to get valid statistics whatever are the table
|
<josh at boxcarmedia.com> to get valid statistics whatever are the table
|
||||||
types.
|
types.
|
||||||
|
* read_dump.php3, lines 245-249: fixed bug #521003 - parse error.
|
||||||
|
|
||||||
2002-02-19 Marc Delisle <lem9@users.sourceforge.net>
|
2002-02-19 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/common.lib.php3: get_magic_quotes fix thanks to
|
* libraries/common.lib.php3: get_magic_quotes fix thanks to
|
||||||
|
@@ -242,11 +242,10 @@ if ($sql_file != 'none') {
|
|||||||
|
|
||||||
if (!empty($open_basedir)) {
|
if (!empty($open_basedir)) {
|
||||||
// check if '.' is in open_basedir
|
// check if '.' is in open_basedir
|
||||||
$pos = strpos($open_basedir, '.');
|
$pos = strpos(' ' . $open_basedir, '.');
|
||||||
|
|
||||||
// from the PHP annotated manual
|
// from the PHP annotated manual
|
||||||
if ( (PMA_PHP_INT_VERSION < 40000 && is_integer($pos) && !$pos)
|
if (!$pos) {
|
||||||
|| (PMA_PHP_INT_VERSION >= 40000 && $pos === false) ) {
|
|
||||||
// if no '.' in openbasedir, do not move the file, force the
|
// if no '.' in openbasedir, do not move the file, force the
|
||||||
// error and let PHP report it
|
// error and let PHP report it
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
Reference in New Issue
Block a user