The Free Software Media System - Server Backend & API
Fix parameters validation in ImageProcessor.GetCachePath
Oleg Shevchenko58924fd1da70
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex f0724b4129..f1fe65064b 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.csindex f585b90ca1..ed20292f6b 100644--- a/Emby.Drawing/ImageProcessor.cs+++ b/Emby.Drawing/ImageProcessor.cs@@ -455,7 +455,7 @@ namespace Emby.Drawingthrow 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));}