mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-07-13 07:01:02 -05:00
Merge pull request #24 from MikeIsAStar/handle-missing-parameters
NAS: Handle missing parameters
This commit is contained in:
commit
8693dff7fc
|
|
@ -48,7 +48,7 @@ func handlePayloadRequest(moduleName string, w http.ResponseWriter, r *http.Requ
|
|||
}
|
||||
|
||||
// Read payload ID (g) from URL
|
||||
game := query["g"][0]
|
||||
game := query.Get("g")
|
||||
if len(game) != 7 && len(game) != 9 {
|
||||
logging.Error(moduleName, "Invalid or missing game ID:", aurora.Cyan(game))
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user