$cfg['LimitChars'] now limits all fields (RFE #742123).

This commit is contained in:
Michal Čihař
2003-06-06 12:36:09 +00:00
parent bd2826fb12
commit c19a9c0d31
2 changed files with 6 additions and 5 deletions

View File

@@ -10,6 +10,8 @@ $Source$
* libraries/relation_cleanup.lib.php3, mult_submits.inc.php3, sql.php3:
Cleanup phpMyAdmin tables also after multi submit actions (RFE #749989).
* tbl_query_box.php3: Don't add target if not in query window.
* libraries/display_tbl.lib.php3: $cfg['LimitChars'] now limits all fields
(RFE #742123).
2003-06-05 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: new faq 6.20 about CREATE TEMPORARY TABLES

View File

@@ -1237,12 +1237,11 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
// loic1: support blanks in the key
$relation_id = $row[$pointer];
// loic1: Cut text/blob fields even if $cfg['ShowBlob'] is true
if (eregi('BLOB', $meta->type)) {
if (strlen($row[$pointer]) > $GLOBALS['cfg']['LimitChars'] && ($dontlimitchars != 1)) {
$row[$pointer] = substr($row[$pointer], 0, $GLOBALS['cfg']['LimitChars']) . '...';
}
// nijel: Cut all fields to $cfg['LimitChars']
if (strlen($row[$pointer]) > $GLOBALS['cfg']['LimitChars'] && ($dontlimitchars != 1)) {
$row[$pointer] = substr($row[$pointer], 0, $GLOBALS['cfg']['LimitChars']) . '...';
}
// loic1: displays special characters from binaries
$field_flags = PMA_mysql_field_flags($dt_result, $i);
if (eregi('BINARY', $field_flags)) {