Permalink
Browse files

Hide null byte in HTML (bug #3358372)

  • Loading branch information...
1 parent 7fa8263 commit 0474c21108628afa2509f47abb5c48e382d1f329 @vrana committed Jul 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 0474c21

Please sign in to comment.