Răsfoiți Sursa

Fix parameters validation in ImageProcessor.GetCachePath

Oleg Shevchenko 4 ani în urmă
părinte
comite
58924fd1da
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 0
      CONTRIBUTORS.md
  2. 1 1
      Emby.Drawing/ImageProcessor.cs

+ 1 - 0
CONTRIBUTORS.md

@@ -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)

+ 1 - 1
Emby.Drawing/ImageProcessor.cs

@@ -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));
             }
             }