Skip to content

Commit

Permalink
Merge branch 'QA_4_6' into QA_4_6-security
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jul 22, 2016
2 parents fd324e5 + 9990310 commit 28eb84e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,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
Expand Down
2 changes: 1 addition & 1 deletion libraries/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static function generateFieldSpec($name, $type, $length = '',
$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) {
Expand Down

0 comments on commit 28eb84e

Please sign in to comment.