Skip to content

Commit

Permalink
Fix XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
kasuganosoras committed Dec 5, 2021
1 parent c4031e6 commit 5272615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/PostHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function switcher($params)
}
} else {
$msg = $result[1] ?? "未知错误";
exit($msg);
exit(htmlspecialchars($msg));
}
}
} else {
Expand Down Expand Up @@ -369,4 +369,4 @@ public function switcher($params)
}
}
}
}
}

0 comments on commit 5272615

Please sign in to comment.