From 0474c21108628afa2509f47abb5c48e382d1f329 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 11 Jul 2011 11:32:44 +0200 Subject: [PATCH] Hide null byte in HTML (bug #3358372) --- adminer/include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index dcdb5312..ff23d730 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -61,7 +61,7 @@ function bracket_escape($idf, $back = false) { * @return string */ function h($string) { - return htmlspecialchars($string, ENT_QUOTES); + return htmlspecialchars(str_replace("\0", "", $string), ENT_QUOTES); } /** Escape for TD -- 2.39.5