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 over 12 years ago. Updated over 12 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 #1

Updated by krileon over 12 years ago

  • File 2920.patch added
  • Status changed from New to Resolved
  • Assignee changed from krileon to beat
  • % Done changed from 0 to 100
Actions #2

Updated by krileon over 12 years ago

  • File deleted (2920.patch)
Actions #3

Updated by krileon over 12 years ago

Actions #4

Updated by beat over 12 years ago

  • Subject changed from ImageMagic: presence not correctly checked to ImageMagic: presence not correctly checked when open_base_dir restriction is in effect but exec() is allowed
  • Status changed from Resolved to Closed

r1588 fixes as discussed.
Thanks.

Actions

Also available in: Atom PDF