fix launcher network path (#4224)

This commit is contained in:
Davide Giacometti 2020-06-12 20:42:31 +02:00 committed by GitHub
parent e8c5f3a882
commit 4c70e75bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,6 +257,11 @@ namespace Microsoft.Plugin.Folder
var folderName = search.TrimEnd('\\').Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None).Last();
var sanitizedPath = Regex.Replace(search, @"[\/\\]+", "\\");
// A network path must start with \\
if (sanitizedPath.StartsWith("\\"))
{
sanitizedPath = sanitizedPath.Insert(0, "\\");
}
return new Result
{