1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Fix #16048 - Allow NULL as default bit value.

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
Peter Kroon
2020-04-03 13:51:03 +07:00
committed by William Desportes
parent 1e628d4722
commit ae640ebcce

View File

@@ -2860,7 +2860,7 @@ class Util
*/
public static function convertBitDefaultValue($bit_default_value)
{
return preg_replace("/^b'(\d*)'?$/", '$1', htmlspecialchars_decode($bit_default_value, ENT_QUOTES), 1);
return preg_replace("/^b'(\d*)'?$/", '$1', htmlspecialchars_decode((string) $bit_default_value, ENT_QUOTES), 1);
}
/**