diff --git a/browse_foreigners.php b/browse_foreigners.php index 53871854bd..f6378dd962 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -36,7 +36,10 @@ if (isset($foreign_navig) && $foreign_navig == __('Show all')) { unset($foreign_limit); } -$foreignData = PMA_getForeignData($foreigners, $field, $override_total, isset($foreign_filter) ? $foreign_filter : '', $foreign_limit); +$foreignData = PMA_getForeignData( + $foreigners, $field, $override_total, + isset($foreign_filter) ? $foreign_filter : '', $foreign_limit +); if (isset($rownumber)) { $rownumber_param = '&rownumber=' . urlencode($rownumber); @@ -49,8 +52,11 @@ $showall = ''; if (is_array($foreignData['disp_row'])) { - if ($cfg['ShowAll'] && ($foreignData['the_total'] > $GLOBALS['cfg']['MaxRows'])) { - $showall = ''; + if ($cfg['ShowAll'] + && ($foreignData['the_total'] > $GLOBALS['cfg']['MaxRows']) + ) { + $showall = ''; } $session_max_rows = $GLOBALS['cfg']['MaxRows']; @@ -72,8 +78,11 @@ if (is_array($foreignData['disp_row'])) { } } ?> + - + phpMyAdmin @@ -236,7 +245,8 @@ if (is_array($foreignData['disp_row'])) { $val_ordered_current_row++; if (PMA_strlen($val_ordered_current_val) <= $cfg['LimitChars']) { - $val_ordered_current_val = htmlspecialchars($val_ordered_current_val); + $val_ordered_current_val + = htmlspecialchars($val_ordered_current_val); $val_ordered_current_val_title = ''; } else { $val_ordered_current_val_title @@ -247,14 +257,16 @@ if (is_array($foreignData['disp_row'])) { ); } if (PMA_strlen($key_ordered_current_val) <= $cfg['LimitChars']) { - $key_ordered_current_val = htmlspecialchars($key_ordered_current_val); + $key_ordered_current_val + = htmlspecialchars($key_ordered_current_val); $key_ordered_current_val_title = ''; } else { $key_ordered_current_val_title = htmlspecialchars($key_ordered_current_val); $key_ordered_current_val = htmlspecialchars( - PMA_substr($key_ordered_current_val, 0, $cfg['LimitChars']) . '...' + PMA_substr($key_ordered_current_val, 0, $cfg['LimitChars']) + . '...' ); } @@ -268,19 +280,24 @@ if (is_array($foreignData['disp_row'])) { ' : '') - .'' - .htmlspecialchars($key_ordered_current_key) . '' . ($key_ordered_current_equals_data ? '' : ''); + . htmlspecialchars($key_ordered_current_key) + . '' . ($key_ordered_current_equals_data ? '' : ''); ?> ' : '') - . '' - . $key_ordered_current_val . '' . ($key_ordered_current_equals_data ? '' : ''); + . md5($field) . '\', \'' + . PMA_jsFormat($key_ordered_current_key, false) + . '\'); return false;">' + . $key_ordered_current_val . '' + . ($key_ordered_current_equals_data ? '' : ''); ?> ' : '') - . '' - . $val_ordered_current_val . '' . ($val_ordered_current_equals_data ? '' : ''); + . '' + . $val_ordered_current_val . '' + . ($val_ordered_current_equals_data ? '' : ''); ?> ' : '') . '' . htmlspecialchars($val_ordered_current_key) + . PMA_jsFormat($val_ordered_current_key, false) . '\'); return false;">' + . htmlspecialchars($val_ordered_current_key) . '' . ($val_ordered_current_equals_data ? '' : ''); ?>