mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-19 19:25:44 +02:00
fix(backend): reject malformed timestamp (#12554)
This commit is contained in:
committed by
GitHub
parent
34223f3da4
commit
af15f8d09d
@@ -38,3 +38,7 @@ export function parseObjectId(id: string): { date: Date; } {
|
||||
date: new Date(parseInt(id.slice(0, 8), 16) * 1000),
|
||||
};
|
||||
}
|
||||
|
||||
export function isSafeObjectIdT(t: number): boolean {
|
||||
return t > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user