Merge remote branch 'origin/master'

This commit is contained in:
Pootle server
2010-05-29 14:40:22 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ if (false !== $possibly_uploaded_val) {
$val = preg_replace('/[^01]/', '0', $val); $val = preg_replace('/[^01]/', '0', $val);
$val = "b'" . PMA_sqlAddslashes($val) . "'"; $val = "b'" . PMA_sqlAddslashes($val) . "'";
} elseif (! (($type == 'datetime' || $type == 'timestamp') && $val == 'CURRENT_TIMESTAMP')) { } elseif (! (($type == 'datetime' || $type == 'timestamp') && $val == 'CURRENT_TIMESTAMP')) {
$val = "'" . PMA_sqlAddslashes($val) . "' /*" . $type . " */"; $val = "'" . PMA_sqlAddslashes($val) . "'";
} }
// Was the Null checkbox checked for this field? // Was the Null checkbox checked for this field?

View File

@@ -457,7 +457,7 @@ foreach ($rows as $row_id => $vrow) {
$special_chars = PMA_printable_bit_value($vrow[$field['Field']], $extracted_fieldspec['spec_in_brackets']); $special_chars = PMA_printable_bit_value($vrow[$field['Field']], $extracted_fieldspec['spec_in_brackets']);
} else { } else {
// special binary "characters" // special binary "characters"
if ($field['is_binary'] || $field['is_blob']) { if ($field['is_binary'] || ($field['is_blob'] && ! $cfg['ProtectBinary'])) {
if ($_SESSION['tmp_user_values']['display_binary_as_hex'] && $cfg['ShowFunctionFields']) { if ($_SESSION['tmp_user_values']['display_binary_as_hex'] && $cfg['ShowFunctionFields']) {
$vrow[$field['Field']] = bin2hex($vrow[$field['Field']]); $vrow[$field['Field']] = bin2hex($vrow[$field['Field']]);
$field['display_binary_as_hex'] = true; $field['display_binary_as_hex'] = true;