Compare commits
2 Commits
4614125fff
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 49df5932fb | |||
| c614f6887c |
@@ -405,10 +405,6 @@ async fn handle_socket(mut socket: WebSocket, tx: &mpsc::UnboundedSender<Leaderb
|
|||||||
fn validate_name(input: &str) -> &str
|
fn validate_name(input: &str) -> &str
|
||||||
{
|
{
|
||||||
let input = input.trim();
|
let input = input.trim();
|
||||||
if input == "null"
|
|
||||||
{
|
|
||||||
return "anon";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Length check
|
// Length check
|
||||||
if input.is_empty() || input.len() > 32
|
if input.is_empty() || input.len() > 32
|
||||||
|
|||||||
Reference in New Issue
Block a user