diff --git a/RhSolutions.AddIn/Services/DatabaseClient.cs b/RhSolutions.AddIn/Services/DatabaseClient.cs index ac4dfa5..69f7fc1 100644 --- a/RhSolutions.AddIn/Services/DatabaseClient.cs +++ b/RhSolutions.AddIn/Services/DatabaseClient.cs @@ -54,7 +54,11 @@ public class DatabaseClient : IDatabaseClient else { - string request = @"https://rh.cebotari.ru/api/search?query=" + line; + UriBuilder builder = new(@"https://rh.cebotari.ru/api/search") + { + Query = $"query={line.Replace("&", "%26")}" + }; + string request = builder.Uri.AbsoluteUri; if (!_memoryCache.TryGetValue(line, out IEnumerable products)) {