From d49193c704558f96b60cf3c40d30baa79006cc54 Mon Sep 17 00:00:00 2001 From: Peter Nugent Date: Sun, 4 Oct 2026 16:40:29 +0100 Subject: [PATCH] Add attach and detach commands to allowed list --- SQLite_Engine/Query/IsValid.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQLite_Engine/Query/IsValid.cs b/SQLite_Engine/Query/IsValid.cs index 386de50..c331df6 100644 --- a/SQLite_Engine/Query/IsValid.cs +++ b/SQLite_Engine/Query/IsValid.cs @@ -440,7 +440,8 @@ private static bool ValidateTextLength(object value, Column column) private static readonly string[] AllowedSqlStarts = { "select", "create table", "create index", "insert into", "update", "delete from", - "pragma", "with", "drop table", "drop index", "alter table" + "pragma", "with", "drop table", "drop index", "alter table", + "attach database", "detach database" }; private static readonly string[] ForbiddenKeywords = {