diff --git a/ChangeLog b/ChangeLog index f1cb787a0..5921d0b26 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-02-26 Marc Delisle + * libraries/sqlparser.lib.php: bug 905066, memory eater, thanks to xuefer + 2004-02-24 Marc Delisle * pdf_pages.php: bug 903450, typo * tbl_row_delete.php: bug 878995: mult_submits.inc.php should not be diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php index 923f1f9dc..e4fe6ebf1 100644 --- a/libraries/sqlparser.lib.php +++ b/libraries/sqlparser.lib.php @@ -267,6 +267,7 @@ if ($is_minimum_common == FALSE) { // ANSI style -- if (($c == '#') || (($count2 + 1 < $len) && ($c == '/') && ($sql[$count2 + 1] == '*')) + || (($count2 + 2 == $len) && ($c == '-') && ($sql[$count2 + 1] == '-')) || (($count2 + 2 < $len) && ($c == '-') && ($sql[$count2 + 1] == '-') && (($sql[$count2 + 2] == ' ') || ($sql[$count2 + 2] == "\n")))) { $count2++; $pos = 0;