mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 17:10:39 +01:00
Better validation
This commit is contained in:
parent
330ea7d210
commit
2504b8391b
1 changed files with 1 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
||||||
export function safeForSql(text: string): boolean {
|
export function safeForSql(text: string): boolean {
|
||||||
return /[\0\x08\x09\x1a\n\r"'\\\%]/g.test(text);
|
return !/[\0\x08\x09\x1a\n\r"'\\\%]/g.test(text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue