This commit is contained in:
Benjamin Toby
2025-02-12 11:52:25 +01:00
parent a2961d6b89
commit 95318307fe
8 changed files with 84 additions and 21 deletions
+1 -3
View File
@@ -1,5 +1,4 @@
"use strict";
// @ts-check
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
@@ -27,8 +26,7 @@ function apiGet(_a) {
query,
values: queryValues,
});
if (typeof query == "string" &&
query.match(/^alter|^delete|information_schema|databases|^create/i)) {
if (typeof query == "string" && query.match(/^alter|^delete|^create/i)) {
return { success: false, msg: "Wrong Input." };
}
let results;