From f68a88636759bced4d876940cdebf4940b0c37d1 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 13 Jul 2009 22:30:09 +0000 Subject: [PATCH] Use contents of "" in import git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@819 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) . ")"; }