mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix some security issues + change username min length to 3
This commit is contained in:
@@ -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}%");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user