Fix #5054: parse string to number with invariant culture.
This commit is contained in:
@ -73,7 +73,7 @@
|
||||
|
||||
if (PageState.QueryString.ContainsKey("id"))
|
||||
{
|
||||
_folderId = int.Parse(PageState.QueryString["id"]);
|
||||
_folderId = SharedConverter.ParseInteger(PageState.QueryString["id"]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -212,7 +212,7 @@
|
||||
folder.SiteId = PageState.Site.SiteId;
|
||||
folder.Name = _name;
|
||||
folder.Type = _type;
|
||||
folder.Capacity = int.Parse(_capacity);
|
||||
folder.Capacity = SharedConverter.ParseInteger(_capacity);
|
||||
folder.CacheControl = _cachecontrol;
|
||||
folder.ImageSizes = _imagesizes;
|
||||
folder.IsSystem = _isSystem;
|
||||
|
@ -119,7 +119,7 @@ else
|
||||
_imageFiles = (string.IsNullOrEmpty(_imageFiles)) ? Constants.ImageFiles : _imageFiles;
|
||||
_uploadableFiles = SettingService.GetSetting(settings, "UploadableFiles", Constants.UploadableFiles);
|
||||
_uploadableFiles = (string.IsNullOrEmpty(_uploadableFiles)) ? Constants.UploadableFiles : _uploadableFiles;
|
||||
_maxChunkSize = int.Parse(SettingService.GetSetting(settings, "MaxChunkSize", "1"));
|
||||
_maxChunkSize = SharedConverter.ParseInteger(SettingService.GetSetting(settings, "MaxChunkSize", "1"));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -137,7 +137,7 @@ else
|
||||
{
|
||||
try
|
||||
{
|
||||
_folderId = int.Parse((string)e.Value);
|
||||
_folderId = SharedConverter.ParseInteger((string)e.Value);
|
||||
await GetFiles();
|
||||
StateHasChanged();
|
||||
}
|
||||
|
Reference in New Issue
Block a user