From: jakubvrana Date: Mon, 13 Jul 2009 22:30:09 +0000 (+0000) Subject: Use contents of "" in import X-Git-Tag: v3.0.0~708 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f68a88636759bced4d876940cdebf4940b0c37d1;p=adminer.git Use contents of "" in import git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@819 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/adminer/select.inc.php b/adminer/select.inc.php index c8108986..d20ab640 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -142,7 +142,7 @@ if ($_POST && !$error) { $cols = " (" . implode(", ", array_map('idf_escape', $matches2[1])) . ")"; } else { foreach ($matches2[1] as $col) { - $row[] = (!strlen($col) ? "NULL" : $dbh->quote(str_replace('""', '"', preg_replace('~^".*"$~s', '', $col)))); + $row[] = (!strlen($col) ? "NULL" : $dbh->quote(str_replace('""', '"', preg_replace('~^"(.*)"$~s', '\\1', $col)))); } $rows[] = "\n(" . implode(", ", $row) . ")"; }