diff --git a/ChangeLog b/ChangeLog index 83cb86140..3c42c82af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -66,6 +66,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA thanks to Pawel Smolinski - zipoking - patch #2709040 [doc] Wrong link in ChangeLog formatter, thanks to Petr Vorel - pevik +- patch #2715417 [interface] Fixed truncation of enum/set values containing parenthesis + thanks to Marco Moreno - mmoreno 3.1.3.1 (2009-03-24) - [security] HTTP Response Splitting and file inclusion vulnerabilities diff --git a/libraries/common.lib.php b/libraries/common.lib.php index cec884a1b..8b85ed2b3 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2559,7 +2559,7 @@ function PMA_printable_bit_value($value, $length) { function PMA_extractFieldSpec($fieldspec) { $first_bracket_pos = strpos($fieldspec, '('); if ($first_bracket_pos) { - $spec_in_brackets = chop(substr($fieldspec, $first_bracket_pos + 1, (strpos($fieldspec, ')') - $first_bracket_pos - 1))); + $spec_in_brackets = chop(substr($fieldspec, $first_bracket_pos + 1, (strrpos($fieldspec, ')') - $first_bracket_pos - 1))); // convert to lowercase just to be sure $type = strtolower(chop(substr($fieldspec, 0, $first_bracket_pos))); } else {