mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-03-21 17:34:38 -05:00
Properly read suspect url from request
This commit is contained in:
parent
8241340f0e
commit
0f5a8f4200
|
|
@ -1047,13 +1047,13 @@ export const actions: {[k: string]: QueryHandler} = {
|
|||
throw new ActionError("Invalid reqs sent.");
|
||||
}
|
||||
// sim server should validate this already
|
||||
if (!reqs.url?.trim().length) {
|
||||
if (!params.url?.trim().length) {
|
||||
throw new ActionError("Invalid suspect URL provided.");
|
||||
}
|
||||
const start = time();
|
||||
try {
|
||||
await smogonFetch("tools/api/suspect-create", "POST", {
|
||||
url: reqs.url,
|
||||
url: params.url,
|
||||
date: start + "",
|
||||
reqs: JSON.stringify(reqs),
|
||||
format: id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user