enhanced full scripting: search all classes when enabled. warning: security should be checked

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21331 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Stefan Urbanek 2005-06-20 20:44:52 +00:00
parent 1664a14a02
commit 305d939c88
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005 Jul 19 Stefan Urbanek
* STEnvironment: search class name namespace when no object is found for
given name and full scripting is enabled.
2005 Jan 4 Stefan Urbanek
* First step of introducing contexts

View file

@ -315,6 +315,14 @@ STEnvironment *sharedEnvironment = nil;
}
}
/* FIXME: Warning: possible security problem in the future */
/* If there is no such object and full scripting is enabled, then
class namespace is searched */
if(!obj && fullScripting)
{
obj = NSClassFromString(objName);
}
return obj;
}