fixed regex

This commit is contained in:
Garvin Hicking
2003-12-12 11:16:59 +00:00
parent ad5bff4edb
commit e984acb7af
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2003-12-12 Garvin Hicking <juststayalittlebitlonger@supergarv.de>
* export.php: Fixed Regex
2003-12-11 Michal Cihar <imreallyaway@cihar.com> 2003-12-11 Michal Cihar <imreallyaway@cihar.com>
* libraries/export/sql.php: Fix moving foreign key definition on Windows * libraries/export/sql.php: Fix moving foreign key definition on Windows
(bug #851950). (bug #851950).

View File

@@ -248,7 +248,7 @@ if ($save_on_server) {
if (substr($cfg['SaveDir'], -1) != '/') { if (substr($cfg['SaveDir'], -1) != '/') {
$cfg['SaveDir'] .= '/'; $cfg['SaveDir'] .= '/';
} }
$save_filename = $cfg['SaveDir'] . preg_replace('@[/\\]@','_',$filename); $save_filename = $cfg['SaveDir'] . preg_replace('@[/\\\\]@','_',$filename);
unset($message); unset($message);
if (file_exists($save_filename) && empty($onserverover)) { if (file_exists($save_filename) && empty($onserverover)) {
$message = sprintf($strFileAlreadyExists, htmlspecialchars($save_filename)); $message = sprintf($strFileAlreadyExists, htmlspecialchars($save_filename));