refactor: save current workspace state including FinlyticAnalyzer fixes, FinlyticApp trade route alignment, and DTO audit documentation
This commit is contained in:
@@ -271,16 +271,14 @@ public class AssetsController : ControllerBase
|
||||
/// <summary>
|
||||
/// Serviert das SVG-Logo direkt aus dem gemounteten Docker Volume (Volumes.LogosRelativePath).
|
||||
/// </summary>
|
||||
[HttpGet("logo/{isin}")]
|
||||
[HttpGet("/api/v1/logo/{isin}")]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> GetAssetLogo([FromRoute] string isin)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(isin)) return NotFound();
|
||||
|
||||
string cleanIsin = isin.Trim().ToUpperInvariant();
|
||||
|
||||
|
||||
// Path Traversal Guard
|
||||
string safeFileName = string.Concat(cleanIsin.Where(c => char.IsLetterOrDigit(c) || c == '_' || c == '-')) + ".svg";
|
||||
string logoPath = Path.Combine(Volumes.LogosRelativePath, safeFileName);
|
||||
string logoPath = Path.Combine(Volumes.LogosRelativePath, $"{isin}.svg");
|
||||
|
||||
if (System.IO.File.Exists(logoPath))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user