[Fix] Risolti problemi pubblicazione e validazione query ODBC
- 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
This commit is contained in:
@@ -7,6 +7,13 @@
|
|||||||
<!-- Version is now automatically calculated by MinVer from git tags -->
|
<!-- Version is now automatically calculated by MinVer from git tags -->
|
||||||
<MinVerTagPrefix>v</MinVerTagPrefix>
|
<MinVerTagPrefix>v</MinVerTagPrefix>
|
||||||
<MinVerVerbosity>detailed</MinVerVerbosity>
|
<MinVerVerbosity>detailed</MinVerVerbosity>
|
||||||
|
|
||||||
|
<!-- Disabilita trimming per compatibilità Blazor Server -->
|
||||||
|
<PublishTrimmed>false</PublishTrimmed>
|
||||||
|
<!-- Abilita PublishSingleFile per deployment semplificato -->
|
||||||
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
|
<!-- Abilita ReadyToRun per migliori performance di avvio -->
|
||||||
|
<PublishReadyToRun>true</PublishReadyToRun>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user