From ddd5860901435a8081861fd841969b88371716d8 Mon Sep 17 00:00:00 2001 From: lorilee Date: Mon, 19 Jul 2010 16:55:49 -0700 Subject: [PATCH] Truncates long enum and set values --- tbl_structure.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tbl_structure.php b/tbl_structure.php index 3d3d7ff29..7f71a4c97 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -242,6 +242,9 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { // for the case ENUM('–','“') $type = htmlspecialchars($type); + if(strlen($type) > $GLOBALS['cfg']['LimitChars']) { + $type = substr($type, 0, $GLOBALS['cfg']['LimitChars']); + } $type_nowrap = '';