diff --git a/ChangeLog b/ChangeLog index 3fb20f7ec5..0bcf3f6f5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,7 @@ phpMyAdmin - ChangeLog 4.6.4 (not yet released) - issue Include X-Robots-Tag header in responses +- issue Enfornce numeric field length when creating table 4.6.3 (2016-06-23) - issue #12249 Fixed cookie path on Windows diff --git a/libraries/Table.php b/libraries/Table.php index bdbbcc6c0c..5bc6ea187d 100644 --- a/libraries/Table.php +++ b/libraries/Table.php @@ -354,7 +354,7 @@ class Table $pattern = '@^(DATE|TINYBLOB|TINYTEXT|BLOB|TEXT|' . 'MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|SERIAL|BOOLEAN|UUID)$@i'; if ($length != '' && ! preg_match($pattern, $type)) { - $query .= '(' . $length . ')'; + $query .= '(' . intval($length) . ')'; } if ($virtuality) {