From 8ea92fb4f119abac6c8152664609702bd9ff1a44 Mon Sep 17 00:00:00 2001 From: Robin Johnson Date: Mon, 12 Aug 2002 18:58:55 +0000 Subject: [PATCH] Fixed bug #594098 --- ChangeLog | 8 ++++++-- libraries/sqlparser.lib.php3 | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1a8a8bdb9..7ab52834f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,9 +5,13 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-08-11 Robin Johnson + * libraries/sqlparser.lib.php3: + - Fixed bug #594098 + 2002-08-12 Marc Delisle - * lang/japanese update, thanks to Yukihiro Kawada - * lang/slovenian update, thanks to Kositer Uros (urosh) + * lang/japanese update: thanks to Yukihiro Kawada + * lang/slovenian update: thanks to Kositer Uros (urosh) 2002-08-12 Mike Beck * tbl_select.php3: Bugfix: it created IS 'NULL' diff --git a/libraries/sqlparser.lib.php3 b/libraries/sqlparser.lib.php3 index 0545d56fb..252991eb2 100644 --- a/libraries/sqlparser.lib.php3 +++ b/libraries/sqlparser.lib.php3 @@ -398,7 +398,7 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) { $count2 ++; $is_sql_variable = ($c == '@'); $is_digit = (!$is_sql_variable) && PMA_STR_isDigit($c); - $is_hex_digit = ($is_digit) && ($c == '0') && ($sql[$count2] == 'x'); + $is_hex_digit = ($is_digit) && ($c == '0') && ($count2 < $len) && ($sql[$count2] == 'x'); $is_float_digit = FALSE; $is_float_digit_exponent = FALSE;