#24379t3lib_stdGraphic::wrapFileName performs escapeshellarg even in safe_mode
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.