Changeset 14548


Ignore:
Timestamp:
10/31/12 15:00:10 (12 years ago)
Author:
tbretz
Message:
Do only escape string arguments in the command string.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/InterpreterV8.cc

    r14547 r14548  
    234234    string command = *str;
    235235
     236    // Escape all string arguments. All others can be kept as they are.
    236237    for (int i=1; i<args.Length(); i++)
    237238    {
    238239        const String::Utf8Value arg(args[i]);
    239         command += " \""+string(*arg)+"\"";
     240        if (args[i]->IsString())
     241            command += " \""+string(*arg)+"\"";
     242        else
     243            command += " "+string(*arg);
    240244    }
    241245
Note: See TracChangeset for help on using the changeset viewer.