cfexecute passing escape character "\" instead of escaping

Description

We have a complex command sent to ImageMagick (latest) which works on ACF9 but fails on lucee. Using the -debug all option the command line output shows the difference is the escape character "\" is being passed to ImageMagick by lucee.

Example code:

local.args = "-debug all /tmp/filename[0] - write mpr:img0 +delete \( mpr:img0[0] -size 1024x1024 ...other stuff here... \) cfexecute(name="/usr/bin/convert", arguments="#local.args#")

Command line debug on lucee:

/usr/bin/convert {-debug} {all} {/tmp/filename[0]} {-write} {mpr:img0} {+delete} {\(} {mpr:img0[0]} {-size} {1024x1024} {other stuff} {\)}

Command line debug on ACF9:

/usr/bin/convert {-debug} {all} filename[0]} {-write} {mpr:img0} {+delete} {(} {mpr:img0[0]} {-size} {1024x1024} {other stuff} {)}

Environment

Centos 6
ImageMagick 6.9
Apache
Default lucee install

Activity

Show:

Darren Walker 19 September 2016 at 08:40

This behaviour might be correct, just different from ACF9 but it means certain commands cannot be passed directly.

We have implemented a workaround by using cfexecute to run a bash script which allows you to manipulate the arguments.

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 18 August 2016 at 14:05
Updated 4 June 2020 at 09:40

Flag notifications