From: Gregor G. <gre...@bf...> - 2007-09-18 13:40:19
|
Uwe Ligges wrote: ... > > Thank you for the update! > > Unfortunately, this are inappropriate usages of ifelse(): We know that > we are working with a length 1 logical vectors here. Using ifelse() is > more insecure and inefficient in such a case! > > I'll change that myself to if(){} else{}. I used ifelse to avoid clutter, but if(){} else{} is also Ok for me. Thanks! >> - if(useWINE && (substr(bugs.directory, start=2, stop=2) == ":")) { >> + if(useWINE && (substr(bugs.directory, 2, 2) == ":")) { > > Is there a good reason for making this code less secure? S-PLUS, does not have arguments (I do not know why) in substr and it fails with "secure version". Gregor |