Issue Bug Closed

#24379t3lib_stdGraphic::wrapFileName performs escapeshellarg even in safe_mode

Jigal van Hemert 12/21/10, 15:10 updated 03/07/14, 20:41

Description

When safe_mode is on PHP will perform escapeshellcmd on each command sent to the exec() function. When escapeshellarg() is performed on each argument problem characters are escaped twice.

Solution: only perform escapeshellarg() when safe_mode is off.

This used to be part of #22243, which is now split in three parts.
(issue imported from #M16797)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.