fix some security issues + change username min length to 3

This commit is contained in:
xiaomlove
2022-12-08 20:43:33 +08:00
parent a0fb2c61d0
commit a39067021c
14 changed files with 83 additions and 50 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
require "../include/bittorrent.php";
$query = \App\Models\UserBanLog::query();
$q = $_REQUEST['q'] ?? '';
$q = htmlspecialchars($_REQUEST['q'] ?? '');
if (!empty($q)) {
$query->where('username', 'like', "%{$q}%");
}