Skip to content
Browse files

Use atomic group for CSV regexp

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1329 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 6ba224b commit 8a048978bf3aa5ba7dd8e4967c7ffda25a39e6a0 jakubvrana committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/select.inc.php
View
2 adminer/select.inc.php
@@ -98,7 +98,7 @@
$file = preg_replace("~^\xEF\xBB\xBF~", '', $file); //! character set
$result = true;
$cols = array_keys($fields);
- preg_match_all('~("[^"]*"|[^"\\r\\n])+~', $file, $matches);
+ preg_match_all('~(?>"[^"]*"|[^"\\r\\n]+)+~', $file, $matches);
$affected = count($matches[0]);
queries("START TRANSACTION");
foreach ($matches[0] as $key => $val) {

0 comments on commit 8a04897

Please sign in to comment.
Something went wrong with that request. Please try again.