From d6621ec185db1f5669b77ef670b13a5810952550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 29 Mar 2012 20:31:43 +0300 Subject: [PATCH] fix jarFile check not being executable jarFile does not need to be executable, just readable --- min/lib/Minify/YUICompressor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/min/lib/Minify/YUICompressor.php b/min/lib/Minify/YUICompressor.php index c5bd8a1..ef44629 100644 --- a/min/lib/Minify/YUICompressor.php +++ b/min/lib/Minify/YUICompressor.php @@ -134,8 +134,8 @@ class Minify_YUICompressor { if (! is_file(self::$jarFile)) { throw new Exception('Minify_YUICompressor : $jarFile('.self::$jarFile.') is not a valid file.'); } - if (! is_executable(self::$jarFile)) { - throw new Exception('Minify_YUICompressor : $jarFile('.self::$jarFile.') is not executable.'); + if (! is_readable(self::$jarFile)) { + throw new Exception('Minify_YUICompressor : $jarFile('.self::$jarFile.') is not readable.'); } if (! is_dir(self::$tempDir)) { throw new Exception('Minify_YUICompressor : $tempDir('.self::$tempDir.') is not a valid direcotry.');