The current testing app code correctly detects these quoted strings, but then it does escapeshellarg on them and the value gets set to the whole literal string, including the single quote at each end.
If we send those sort of values without quotes, then it looks like empty space, no space or multiple values in the command line.
So if an element is already surrounded by single quotes, then do not escapeshellarg it.
Description
We need to be able to specify empty values in occ commands, or values containing spaces:
The current testing app code correctly detects these quoted strings, but then it does
escapeshellarg
on them and the value gets set to the whole literal string, including the single quote at each end.If we send those sort of values without quotes, then it looks like empty space, no space or multiple values in the command line.
So if an element is already surrounded by single quotes, then do not
escapeshellarg
it.Checklist: