Project

General

Profile

Actions

Bug #2920

closed

ImageMagic: presence not correctly checked when open_base_dir restriction is in effect but exec() is allowed

Added by beat about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
20 October 2011
Due date:
% Done:

100%

Estimated time:
0:30 h

Description

Check for executable file instead of path directory directory:

As explained here:
https://www.joomlapolis.com/forum/145-community-builder/179071-imagemagick-path-wrong-since-upgrade-to-cb-17#180067

isdir() is subject to openbasepath restrictions while executables are not.

Fix is to replace is_dir() with is_executable( dir + imagemagic executable file )


Files

2920.patch (1.58 KB) 2920.patch krileon, 20 October 2011 15:59
Actions

Also available in: Atom PDF