Added note on when/where we should translate and split the
authoraland <aland>
Tue, 28 May 2002 17:24:15 +0000 (17:24 +0000)
committeraland <aland>
Tue, 28 May 2002 17:24:15 +0000 (17:24 +0000)
input string.

src/main/exec.c

index 66f8e3c..99c4b88 100644 (file)
@@ -98,6 +98,14 @@ int radius_exec_program(const char *cmd, REQUEST *request,
        
        /*
         *      Build vector list of arguments and execute.
+        *
+        *      FIXME: This parsing gets excited over spaces in
+        *      the translated strings, e.g. User-Name = "aa bb"
+        *      is passed as two seperate arguments, instead of one.
+        *
+        *      What we SHOULD do instead is to split the exec program
+        *      buffer first, and then do the translation on every
+        *      subsequent string.
         */
        p = strtok(buf, " \t");
        if (p) do {