Forum OpenACS Development: Problem with vars values in tcl prodecures

Hi everyone,

Whenever I call a tcl procedure with a variable wich value starts with "-" I get an error like this:

invalid switch: "-var_content"
    while executing
"proc_name__arg_parser"

Is there a way to avoid this?

Thanks, Jose

Collapse
Posted by Jade Rubick on
proc_name -- $varname

This is sometimes helps avoid security issues as well.

Jade,

Thanks a lot for your answer, sorry but I didn't see it until today.

It worked just fine, thanks

Regards, Jose