Preserve null byte in HTML
This commit is contained in:
parent
03e31ed154
commit
e62fc3a07b
|
@ -70,7 +70,7 @@ function bracket_escape($idf, $back = false) {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function h($string) {
|
function h($string) {
|
||||||
return htmlspecialchars(str_replace("\0", "", $string), ENT_QUOTES);
|
return str_replace("\0", "�", htmlspecialchars($string, ENT_QUOTES));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Escape for TD
|
/** Escape for TD
|
||||||
|
|
Loading…
Reference in a new issue