Preserve null byte in HTML

This commit is contained in:
Jakub Vrana 2014-05-02 10:27:00 -07:00
parent 03e31ed154
commit e62fc3a07b

View file

@ -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