Fixed IPv4/IPv6 To Binary input transformation

We really can't just output binary value, it can not be safely used in
the result utf-8 query string.

Fixes #13552

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-10-03 15:55:11 +02:00
parent 8385c2d47d
commit d0d24ce20b
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ phpMyAdmin - ChangeLog
- issue #13515 Fixed rendering of add index dialog
- issue #13710 Fixed possible error in server advisor
- issue #13477 Fixed setting input transformations
- issue #13552 Fixed IPv4/IPv6 To Binary input transformation
4.7.4 (2017-08-23)
- issue #13415 Remove shadow from the logo

View File

@ -45,7 +45,7 @@ class Text_Plain_Iptobinary extends IOTransformationsPlugin
{
$val = @inet_pton($buffer);
if ($val !== false) {
return $val;
return '0x' . bin2hex($val);
}
return $buffer;