This commit is contained in:
Benjamin Toby
2025-02-12 11:55:36 +01:00
parent 95318307fe
commit e6702c7f82
5 changed files with 5 additions and 11 deletions
@@ -79,12 +79,7 @@ export default async function runQuery({
*
* @description Input Validation
*/
if (
readOnly &&
formattedQuery.match(
/^alter|^delete|information_schema|^create/i
)
) {
if (readOnly && formattedQuery.match(/^alter|^delete|^create/i)) {
throw new Error("Wrong Input!");
}
+1 -1
View File
@@ -8,7 +8,7 @@ import updateTable from "./utils/updateTable";
import dbHandler from "./utils/dbHandler";
import EJSON from "../utils/ejson";
import { DSQL_DatabaseSchemaType } from "../types";
import grabDirNames from "@/utils/backend/names/grab-dir-names";
import grabDirNames from "../../utils/backend/names/grab-dir-names";
type Param = {
userId?: number | string | null;