]> git.joonet.de Git - adminer.git/commitdiff
Use contents of "" in import
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 13 Jul 2009 22:30:09 +0000 (22:30 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 13 Jul 2009 22:30:09 +0000 (22:30 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@819 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/select.inc.php

index c8108986daf05d489fa79af1a708b260ad67de65..d20ab640642b362ba01586f111bd74ce080948aa 100644 (file)
@@ -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) . ")";
                        }