fix missing fragment portion of LocalPath (#6257)
This commit is contained in:
parent
6ce47e5cd9
commit
807fbd4d89
1 changed files with 4 additions and 1 deletions
|
@ -58,7 +58,10 @@ namespace Microsoft.Plugin.Indexer.SearchHelper
|
|||
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
|
||||
{
|
||||
Path = uri_path.LocalPath,
|
||||
|
|
Loading…
Reference in a new issue