diff --git a/check.php b/check.php index cd5d810..f0c61bf 100644 --- a/check.php +++ b/check.php @@ -1,7 +1,13 @@ 16 || !preg_match("/[0-9a-zA-Z_]/", $name)) { + echo('Invalid name.'); + return; + } + global $table_bans, $table_history, $conn; $stmt = $conn->prepare("SELECT name,uuid FROM " . $table_history . " WHERE name=? ORDER BY date LIMIT 1"); if ($stmt->execute(array($name))) {