mirror of
https://github.com/ZeroDream-CN/SakuraPanel.git
synced 2025-01-12 01:42:52 +08:00
Fix XSS
This commit is contained in:
parent
c4031e696d
commit
527261574f
@ -94,7 +94,7 @@ class PostHandler {
|
||||
}
|
||||
} else {
|
||||
$msg = $result[1] ?? "未知错误";
|
||||
exit($msg);
|
||||
exit(htmlspecialchars($msg));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -369,4 +369,4 @@ class PostHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user