]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
No need for extra escaping now
authorNick Porter <nick@portercomputing.co.uk>
Fri, 22 Sep 2023 12:27:34 +0000 (13:27 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 25 Sep 2023 13:41:21 +0000 (14:41 +0100)
The `program` option is always parsed as T_BACK_QUOTED_STRING

src/tests/modules/exec/module.conf

index bd190a1cf4cae0c639142576cf23fd63fc9fd13a..d439f90dd1ca1556a6bf1d3048b72c254104f84e 100644 (file)
@@ -10,7 +10,7 @@ exec exec_async_mod {
        input_pairs = &request
        shell_escape = yes
        timeout = 10
-       program = "/bin/sh -c 'echo \\\'Tmp-String-0 = welcome\\\''"
+       program = "/bin/sh -c 'echo \'Tmp-String-0 = welcome\''"
 }
 
 exec exec_sync {
@@ -26,7 +26,7 @@ exec exec_sync_mod {
        output_pairs = &control
        shell_escape = yes
        timeout = 10
-       program = "/bin/sh -c 'echo \\\'Tmp-String-0 = welcome\\\''"
+       program = "/bin/sh -c 'echo \'Tmp-String-0 = welcome\''"
 }
 
 exec exec_sync_attrs {