Bug #584

server <sysopt>, <appopt> and cpmsrv client cmdline string argument quote issues

Added by Madars about 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:08/26/2020
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

Currently for example

if for [tpbridge -g "HELLO WORLD" -i 0.0.0.0] is defined, the ndrxd would start the process with following arguments:

1. -g
2. "HELLO
3. WORLD"
4. -i
5. 0.0.0.0

Correct version would be:

1. -g
2. "HELLO WORLD"
3. -i
4. 0.0.0.0

Thus in some cases space or tab seperated data cannot be passed in command line to processes. Needs to implement shell like escaping:

For example "HELLO 'WORLD'" shall become:

- HELLO 'WORLD'

For example "HELLO \"WORLD'" shall become:

- HELLO "WORLD'

For example "HELLO \\"WORLD'" shall become:

- HELLO \
- WORLD'

and so on.

History

#1 Updated by Madars about 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

7.5+

#2 Updated by Madars about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF