diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-09-14 04:01:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-14 04:01:46 +0000 |
| commit | a72f2d35862cf195596075b62ed7180166f36421 (patch) | |
| tree | 086763519668a2e4b7fba418e740be54f70f8e5a | |
| parent | 8102f4eb4e2a004fc7dbf62371df042de98c0db7 (diff) | |
| parent | 58924fd1da70cfdbdde835d302dca0812b984187 (diff) | |
Merge pull request #4142 from olsh/master
Fix parameters validation in ImageProcessor.GetCachePath
| -rw-r--r-- | CONTRIBUTORS.md | 1 | ||||
| -rw-r--r-- | Emby.Drawing/ImageProcessor.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index f0724b412..f1fe65064 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -198,3 +198,4 @@ - [tikuf](https://github.com/tikuf/) - [Tim Hobbs](https://github.com/timhobbs) - [SvenVandenbrande](https://github.com/SvenVandenbrande) + - [olsh](https://github.com/olsh) diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs index f585b90ca..ed20292f6 100644 --- a/Emby.Drawing/ImageProcessor.cs +++ b/Emby.Drawing/ImageProcessor.cs @@ -455,7 +455,7 @@ namespace Emby.Drawing 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)); } |
