Fixed tryParse

This commit is contained in:
Bjarke Berg
2021-09-15 13:40:08 +02:00
parent f68717c1c8
commit 39faf63f9c
45 changed files with 474 additions and 444 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
@@ -187,7 +188,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
//return a normal node menu:
int iid;
if (int.TryParse(id, out iid) == false)
if (int.TryParse(id, NumberStyles.Integer, CultureInfo.InvariantCulture, out iid) == false)
{
return NotFound();
}