diff --git a/src/misc/safe-for-sql.ts b/src/misc/safe-for-sql.ts index 7a57fabdfc..02eb7f0a26 100644 --- a/src/misc/safe-for-sql.ts +++ b/src/misc/safe-for-sql.ts @@ -1,3 +1,3 @@ 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); }