Skip to content

Commit 2bcc465

Browse files
committed
Fixed vulnerability for System.Private.Uri / System.Net.NetworkInformation for users of net9.0. Added net9.0 target.
1 parent 578e5a0 commit 2bcc465

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Meraki.Api/AuthenticatedBackingOffHttpClientHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ await _options
200200
// Only record the time we spent processing the request/response
201201
_durationStopWatch.Stop();
202202

203-
TimeSpan delay;
203+
TimeSpan delay = TimeSpan.Zero;
204204
// As long as we were not given a back-off request then we'll return the response and any further StatusCode handling is up to the caller
205205
var statusCodeInt = (int)httpResponseMessage.StatusCode;
206206

Meraki.Api/Meraki.Api.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;net9.0</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
<ImplicitUsings>enable</ImplicitUsings>
98
<AnalysisLevel>latest-recommended</AnalysisLevel>
109
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1110
<PackageIcon>Icon.png</PackageIcon>

Meraki.Api/MerakiClient_EndOfLifeDetails.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ public static async Task<List<DeviceModelEndOfLifeDetail>> GetEndOfLifeDetailsAs
9292
/// <returns>True if successfully parsed, otherwise false.</returns>
9393
private static bool TryGetDate(HtmlNode htmlNode, out DateTimeOffset dateTimeOffset)
9494
{
95+
// Initialize the out parameter
96+
dateTimeOffset = default;
97+
9598
// Decode the HTML
9699
var text = WebUtility.HtmlDecode(htmlNode.InnerText);
97100
if (DateTime.TryParseExact(

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.101",
3+
"version": "9.0.306",
44
"rollForward": "latestFeature"
55
}
66
}

0 commit comments

Comments
 (0)