From a4aa368e59903266fcceeda5d79883bd5dd0985e Mon Sep 17 00:00:00 2001 From: Paurakh Sharma Humagain Date: Thu, 25 Nov 2021 13:42:48 +0100 Subject: [PATCH] Fix isValidAudio logic for remote URL --- src/Mp3Info.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mp3Info.php b/src/Mp3Info.php index f19c349..9168c56 100644 --- a/src/Mp3Info.php +++ b/src/Mp3Info.php @@ -1036,7 +1036,7 @@ class Mp3Info { * @throws \Exception */ public static function isValidAudio($filename) { - if (!file_exists($filename) && strpos($filename, '://')) { + if (!file_exists($filename) && strpos($filename, '://') == false) { throw new Exception('File ' . $filename . ' is not present!'); }