mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Hide null byte in HTML (bug #3358372)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user