From e6688293f06b07479334a0d7e5db514db9c5c800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 25 May 2002 16:29:36 +0000 Subject: [PATCH] Path must use "\" under winwin --- ChangeLog | 1 + read_dump.php3 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 {