mirror of
https://github.com/smogon/pokemon-showdown-loginserver.git
synced 2026-04-26 01:31:42 -05:00
Fix uploading replays
This commit is contained in:
parent
d12a69dbbf
commit
a56ac973ae
|
|
@ -38,7 +38,7 @@ export interface ReplayData {
|
|||
export const Replays = new class {
|
||||
readonly passwordCharacters = '0123456789abcdefghijklmnopqrstuvwxyz';
|
||||
async prep(params: {[k: string]: unknown}) {
|
||||
const id = toID(params.id);
|
||||
const id = ('' + params.id).toLowerCase().replace(/[^a-z0-9-]+/g, '');
|
||||
let isPrivate: 0 | 1 | 2 = params.hidden ? 1 : 0;
|
||||
if (params.hidden === 2) isPrivate = 2;
|
||||
let p1 = Session.wordfilter(`${params.p1}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user