diff --git a/ChangeLog b/ChangeLog index b277df8d2..a81818fc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,7 +15,6 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1764195 [views] DROP button does not work on defective views - bug #1805773 [relations] browse foreign values: return values not escaped, thanks to Alex Rambau -- bug #1798786 [import] Wrong error message when a string contains semicolon - bug #1807923 [login] Login with html entities in password fails - [core] Undefined variable when creating a table that exists diff --git a/libraries/import/sql.php b/libraries/import/sql.php index 3d8352dd5..f0a38da0c 100644 --- a/libraries/import/sql.php +++ b/libraries/import/sql.php @@ -77,12 +77,6 @@ while (!($finished && $i >= $len) && !$error && !$timeout_passed) { $first_quote = strpos($buffer, '\'', $i); if ($first_quote === FALSE) { $first_quote = $big_value; - $next_quote = $big_value; - } else { - $next_quote = strpos($buffer, '\'', $first_quote + 1); - if ($next_quote === FALSE) { - $next_quote = $big_value; - } } $p2 = strpos($buffer, '"', $i); if ($p2 === FALSE) { @@ -91,12 +85,11 @@ while (!($finished && $i >= $len) && !$error && !$timeout_passed) { /** * @todo it's a shortcoming to look for a delimiter that might be * inside quotes (or even double-quotes) - * for the moment, catch the case of delimiter between quotes */ $first_sql_delimiter = strpos($buffer, $sql_delimiter, $i); if ($first_sql_delimiter === FALSE) { $first_sql_delimiter = $big_value; - } elseif ($first_sql_delimiter < $first_quote && $first_sql_delimiter > $next_quote) { + } else { $found_delimiter = true; } $p4 = strpos($buffer, '#', $i);