Fixed inline editing of hex values

Fixes #13387

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-07-17 16:56:07 +02:00
parent 6a3d51e084
commit d0ab548f76
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ phpMyAdmin - ChangeLog
- issue #13465 Fixed creating relation
- issue #13475 Fixed export without backquotes
- issue #13482 Improved handling of uploaded files with open_basedir
- issue #13387 Fixed inline editing of hex values
4.7.2 (2017-06-29)
- issue #13314 Make theme selection keep current server

View File

@ -2487,6 +2487,8 @@ function PMA_verifyWhetherValueCanBeTruncatedAndAppendExtraData(
|| ($meta->type == 'time')
) {
$new_value = PMA\libraries\Util::addMicroseconds($new_value);
} elseif (mb_strpos($meta->flags, 'binary') !== false) {
$new_value = '0x' . bin2hex($new_value);
}
$extra_data['isNeedToRecheck'] = true;
$extra_data['truncatableFieldValue'] = $new_value;