Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Save assignment if not necessary

  • Loading branch information...
commit b16bb542195fb8055e24f1ca2b173727b1261b83 1 parent 9188d21
@vrana authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  adminer/sql.inc.php
View
2  adminer/sql.inc.php
@@ -71,10 +71,10 @@
if (!$found && $fp && !feof($fp)) {
$query .= fread($fp, 1e5);
} else {
- $offset = $pos + strlen($found);
if (!$found && rtrim($query) == "") {
break;
}
+ $offset = $pos + strlen($found);
if ($found && rtrim($found) != $delimiter) { // find matching quote or comment end
while (preg_match('(' . ($found == '/*' ? '\\*/' : ($found == '[' ? ']' : (ereg('^-- |^#', $found) ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s', $query, $match, PREG_OFFSET_CAPTURE, $offset)) { //! respect sql_mode NO_BACKSLASH_ESCAPES
$s = $match[0][0];
Please sign in to comment.
Something went wrong with that request. Please try again.