From fe67a09ccb2276808527be5887c15d28c09f0484 Mon Sep 17 00:00:00 2001 From: Rune Antonsen Date: Thu, 23 Nov 2017 15:12:01 +0100 Subject: [PATCH] fix: add CultureInfo.InvariantCulture to int.Parse Fix issue where different Culture some times makes int.Parse thrown an `System.FormatException: 'Input string was not in a correct format.' ` Closes: U4-10596 --- .../PublishedCache/XmlPublishedCache/PublishedContentCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs index c8ddd77afd..ae612afe09 100644 --- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs +++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs @@ -251,7 +251,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache // move to parent node e = (XmlElement) e.ParentNode; - id = int.Parse(e.GetAttribute("id")); + id = int.Parse(e.GetAttribute("id"), CultureInfo.InvariantCulture); hasDomains = id != -1 && domainHelper.NodeHasDomains(id); }