Skip to content

Commit

Permalink
fix dotenv dependencies invulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Dovchik committed Nov 27, 2024
1 parent 02af5d4 commit 5dd080d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/Console/Examples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNetEnv" Version="2.5.0" />
<PackageReference Include="DotNetEnv" Version="3.1.1" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 5 additions & 1 deletion examples/WebApi/Controllers/HandleFaxEventController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ public async Task<IActionResult> HandleJsonEvent([FromBody] IFaxEvent faxEvent)
// download if fax completed
foreach (var file in completedFaxEvent.Files)
{
if (file.File is null || completedFaxEvent.Fax is null)
{
continue;
}
var bytes = Convert.FromBase64String(file.File);
var contents = new MemoryStream(bytes);
var fileName = completedFaxEvent.Fax.Id + "." + file.FileType.Value.ToLower();
var fileName = completedFaxEvent.Fax.Id + "." + file.FileType?.Value.ToLower();
await SaveFile(fileName, contents);
}
break;
Expand Down
2 changes: 1 addition & 1 deletion tests/Sinch.Tests/Sinch.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNetEnv" Version="2.5.0" />
<PackageReference Include="DotNetEnv" Version="3.1.1" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="FluentAssertions.Json" Version="6.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
Expand Down

0 comments on commit 5dd080d

Please sign in to comment.