mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
fix missing fragment portion of LocalPath (#6257)
This commit is contained in:
@@ -58,7 +58,10 @@ namespace Microsoft.Plugin.Indexer.SearchHelper
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var uri_path = new Uri((string)oleDBResult.FieldData[0]);
|
// # is URI syntax for the fragment component, need to be encoded so LocalPath returns complete path
|
||||||
|
var string_path = ((string)oleDBResult.FieldData[0]).Replace("#", "%23", StringComparison.OrdinalIgnoreCase);
|
||||||
|
var uri_path = new Uri(string_path);
|
||||||
|
|
||||||
var result = new SearchResult
|
var result = new SearchResult
|
||||||
{
|
{
|
||||||
Path = uri_path.LocalPath,
|
Path = uri_path.LocalPath,
|
||||||
|
|||||||
Reference in New Issue
Block a user