From de3f9edb88aaf0486485838de1b115f2d9ac87c9 Mon Sep 17 00:00:00 2001 From: shadlaws Date: Sat, 9 Mar 2013 15:59:23 +0100 Subject: Follow-on to #1935 - Ensure ffmpeg is executable, remove possible doubled "/". - movie::find_ffmpeg - made it use is_executable instead of just file_exists. - system::find_binary - removed possible doubled "/" in paths. --- modules/gallery/helpers/system.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gallery/helpers/system.php') diff --git a/modules/gallery/helpers/system.php b/modules/gallery/helpers/system.php index 7d56466e..f0879d6a 100644 --- a/modules/gallery/helpers/system.php +++ b/modules/gallery/helpers/system.php @@ -47,6 +47,7 @@ class system_Core { explode(":", module::get_var("gallery", "extra_binary_paths"))); foreach ($paths as $path) { + $path = rtrim($path, "/"); $candidate = "$path/$binary"; // @suppress errors below to avoid open_basedir issues if (@file_exists($candidate)) { -- cgit v1.2.3