mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Preserve null byte in HTML
This commit is contained in:
@@ -70,7 +70,7 @@ function bracket_escape($idf, $back = false) {
|
||||
* @return string
|
||||
*/
|
||||
function h($string) {
|
||||
return htmlspecialchars(str_replace("\0", "", $string), ENT_QUOTES);
|
||||
return str_replace("\0", "�", htmlspecialchars($string, ENT_QUOTES));
|
||||
}
|
||||
|
||||
/** Escape for TD
|
||||
|
Reference in New Issue
Block a user