mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
No need for other chars to be replaced
Impossible to output an XSS without < or > alone
This commit is contained in:
@@ -65,8 +65,8 @@ function xssClean($data,$type) {
|
||||
|
||||
// === html ===
|
||||
if ($type == "html") {
|
||||
$bad = array("<", ">", "=", "&", "(", ")", "\"", "'");
|
||||
$good = array("<", ">", "=", "&", "(", ")", """, "'");
|
||||
$bad = array("<", ">");
|
||||
$good = array("<", ">");
|
||||
}
|
||||
|
||||
// === style ===
|
||||
|
||||
Reference in New Issue
Block a user