Merge pull request #4142 from olsh/master

Fix parameters validation in ImageProcessor.GetCachePath
This commit is contained in:
Bond-009 2020-09-14 04:01:46 +00:00 committed by GitHub
commit a72f2d3586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -198,3 +198,4 @@
- [tikuf](https://github.com/tikuf/) - [tikuf](https://github.com/tikuf/)
- [Tim Hobbs](https://github.com/timhobbs) - [Tim Hobbs](https://github.com/timhobbs)
- [SvenVandenbrande](https://github.com/SvenVandenbrande) - [SvenVandenbrande](https://github.com/SvenVandenbrande)
- [olsh](https://github.com/olsh)

View File

@ -455,7 +455,7 @@ namespace Emby.Drawing
throw new ArgumentException("Path can't be empty.", nameof(path)); throw new ArgumentException("Path can't be empty.", nameof(path));
} }
if (path.IsEmpty) if (filename.IsEmpty)
{ {
throw new ArgumentException("Filename can't be empty.", nameof(filename)); throw new ArgumentException("Filename can't be empty.", nameof(filename));
} }