XSS/bug with last commit to utf8tohtml().
This commit is contained in:
parent
f6f1ecd2df
commit
4a03c4c3cd
@ -1339,7 +1339,7 @@
|
||||
}
|
||||
|
||||
function utf8tohtml($utf8) {
|
||||
return mb_encode_numericentity($utf8, Array(0xff, 0xffff, 0, 0xffff), 'UTF-8');
|
||||
return mb_encode_numericentity(htmlspecialchars($utf8, ENT_NOQUOTES, 'UTF-8'), Array(0xff, 0xffff, 0, 0xffff), 'UTF-8');
|
||||
}
|
||||
|
||||
function buildThread($id, $return=false, $mod=false) {
|
||||
|
Loading…
Reference in New Issue
Block a user