From ed5316fbdfe5d5e752f489d658fc6974a0affa58 Mon Sep 17 00:00:00 2001 From: Alessio Dal Santo Date: Fri, 13 Feb 2026 10:28:47 +0100 Subject: [PATCH] [Fix] Risolti problemi pubblicazione e validazione query ODBC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Disabilitato trimming per compatibilità con Blazor Server (risolve crash TypeLoadException) - Configurati PublishSingleFile e ReadyToRun per deployment ottimizzato - Rimosso controllo eccessivamente restrittivo sui commenti SQL in validazione query - Ora permessi commenti -- e /* */ nelle query SELECT ODBC --- Data_Coupler/Data_Coupler.csproj | 7 +++++++ Data_Coupler/Pages/DataCoupler.razor.cs | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Data_Coupler/Data_Coupler.csproj b/Data_Coupler/Data_Coupler.csproj index 0f7be6e..7dce47b 100644 --- a/Data_Coupler/Data_Coupler.csproj +++ b/Data_Coupler/Data_Coupler.csproj @@ -7,6 +7,13 @@ v detailed + + + false + + true + + true diff --git a/Data_Coupler/Pages/DataCoupler.razor.cs b/Data_Coupler/Pages/DataCoupler.razor.cs index 6ba5493..a93d6b0 100644 --- a/Data_Coupler/Pages/DataCoupler.razor.cs +++ b/Data_Coupler/Pages/DataCoupler.razor.cs @@ -2477,13 +2477,6 @@ public partial class DataCoupler : ComponentBase } } - // Verifica che non contenga commenti SQL potenzialmente pericolosi - if (upperQuery.Contains("--") || upperQuery.Contains("/*")) - { - Logger.LogWarning("Query rifiutata: contiene commenti SQL non consentiti"); - return false; - } - return true; }