Project

General

Profile

Bug #2920

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

Added by beat about 9 years ago. Updated almost 9 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 )

2920.patch (1.58 KB) 2920.patch krileon, 20 October 2011 03:59 PM

History

#1 Updated by krileon about 9 years ago

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

#2 Updated by krileon about 9 years ago

  • File deleted (2920.patch)

#3 Updated by krileon about 9 years ago

#4 Updated by beat almost 9 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.

Also available in: Atom PDF