Fix handling of -- (bug #1453430).

This commit is contained in:
Michal Čihař
2006-03-23 16:58:58 +00:00
parent 84ca513a51
commit 8ece101046
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2006-03-23 Michal Čihař <michal@cihar.com>
* libraries/import/sql.php: Fix handling of -- (bug #1453430).
2006-03-23 Alexander M. Turek <me@derrabus.de>
* lang/german-*.inc.php: Updates, sync'ed some technical terms with the
German MySQL manual.

View File

@@ -72,7 +72,7 @@ if (isset($plugin_list)) {
$p4 = 2147483647;
}
$p5 = strpos($buffer, '--', $i);
if ($p5 === FALSE) {
if ($p5 === FALSE || $p5 >= ($len - 2) || $buffer[$p5 + 2] > ' ') {
$p5 = 2147483647;
}
$p6 = strpos($buffer, '/*', $i);