diff --git a/ChangeLog b/ChangeLog index c13a9fe00..d4a64186e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,7 @@ $Source$ - removed an "onchange" js handler to lower server charge. * pdf_schema.php3; fpdf/*; libraries/fpdf/*: moved the "fpdf" directory in the "libraries" one. + * read_dump.php3, lines 255-256: path must use "\" under winwin. 2002-05-25 Alexander M. Turek * lang/italian.inc.php3: Updates, thanks again to diff --git a/read_dump.php3 b/read_dump.php3 index 70e0ac27e..522247162 100644 --- a/read_dump.php3 +++ b/read_dump.php3 @@ -252,7 +252,8 @@ if ($sql_file != 'none') { $sql_query = fread(fopen($sql_file, 'r'), filesize($sql_file)); } else { - $sql_file_new = './tmp/' . basename($sql_file); + $sql_file_new = (PMA_IS_WINDOWS ? '.\\tmp\\' : './tmp/') + . basename($sql_file); if (PMA_PHP_INT_VERSION < 40003) { copy($sql_file, $sql_file_new); } else {