patch #2715417 [interface] Fixed truncation of enum/set values containing parenthesis

This commit is contained in:
Herman van Rink
2009-04-04 13:06:20 +00:00
parent cc010ddaef
commit 5a4cdf779a
2 changed files with 3 additions and 1 deletions

View File

@@ -19,6 +19,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

View File

@@ -2551,7 +2551,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 {