diff --git a/libraries/read_dump.lib.php b/libraries/read_dump.lib.php index 013dc5f9c..56579fcae 100644 --- a/libraries/read_dump.lib.php +++ b/libraries/read_dump.lib.php @@ -72,11 +72,12 @@ function PMA_splitSqlFile(&$ret, $sql, $release) // lets skip comments (/*, -- and #) else if (($char == '-' && $sql[$i + 1] == '-' && $sql[$i + 2] <= ' ') || $char == '#' || ($char == '/' && $sql[$i + 1] == '*')) { - $i = strpos($sql, $char == '/' ? '*/' : "\n", $i) + ($char == '/' ? 1 : 0); + $i = strpos($sql, $char == '/' ? '*/' : "\n", $i); // didn't we hit end of string? if ($i === FALSE) { break; } + if ($char == '/') $i++; } // We are not in a string, first check for delimiter...