Fix bonifica SVG

This commit is contained in:
Samuele Locatelli
2025-10-20 12:20:22 +02:00
parent 7db9ab0b26
commit d80f3acca8
+6
View File
@@ -160,6 +160,7 @@ namespace Lux.API.Controllers
// ...se ricevo percorso --> leggo jwd/svg cablato
if (!string.IsNullOrEmpty(id))
{
// bonifica nome svg da
svgContent = _imgService.LoadSvg(id);
}
sw.Stop();
@@ -189,6 +190,11 @@ namespace Lux.API.Controllers
{
id = id.Replace(".svg", "");
}
// se contiene i caratteri casuali x forzare reload --> li levo
if(id.Contains("-"))
{
id = id.Substring(0, id.IndexOf("-"));
}
string svgContent = await _imgService.LoadSvgAsync(id, env);
// se vuoto --> leggo img logo...