From: Albert G. <Dr....@t-...> - 2008-08-15 11:12:41
|
Albert Graef wrote: > - search the directory of the script containing the using clause > > - failing that, search the cwd > > - failing that, search PURELIB Thinking about this some more, I realized that this is vunerable to code injection. What if the user inadvertently puts a module named 'primitives.pure' into the cwd? Therefore I think that PURELIB should actually be searched before the cwd (much like #include <foo.h> in C). Note that if the 'using' script is in the cwd, then the cwd will still be searched first anyway. Also, this will only apply to 'using' clauses, not to scripts specified on the command line or with 'run'. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |