Sanitize publisher name
This commit is contained in:
parent
f848508801
commit
243a556fff
1 changed files with 2 additions and 0 deletions
|
|
@ -186,6 +186,8 @@ public class CoverDbService : ICoverDbService
|
|||
{
|
||||
try
|
||||
{
|
||||
// Sanitize user input
|
||||
publisherName = publisherName.Replace(Environment.NewLine, string.Empty).Replace("\r", string.Empty).Replace("\n", string.Empty);
|
||||
var provider = _cacheFactory.GetCachingProvider(EasyCacheProfiles.Publisher);
|
||||
var res = await provider.GetAsync<string>(publisherName);
|
||||
if (res.HasValue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue